-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd784df
commit 7204c8c
Showing
5 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
extensions: | ||
- PhpSpec\NyanFormattersExtension\Extension | ||
PhpSpec\NyanFormattersExtension\Extension: ~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
namespace PhpSpec\NyanFormattersExtension; | ||
|
||
use PhpSpec\Extension\ExtensionInterface; | ||
use PhpSpec\Extension as PhpSpecExtension; | ||
use PhpSpec\ServiceContainer; | ||
|
||
/** | ||
|
@@ -12,12 +12,12 @@ | |
* | ||
* @author Matthew Davis <[email protected]> | ||
*/ | ||
class Extension implements ExtensionInterface | ||
class Extension implements PhpSpecExtension | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function load(ServiceContainer $container) | ||
public function load(ServiceContainer $container, array $params) | ||
{ | ||
$this->addFormatter($container, 'cat', 'PhpSpec\NyanFormattersExtension\Formatter\NyanFormatter'); | ||
$this->addFormatter($container, 'dino', 'PhpSpec\NyanFormattersExtension\Formatter\DinoFormatter'); | ||
|
@@ -33,7 +33,7 @@ public function load(ServiceContainer $container) | |
*/ | ||
protected function addFormatter(ServiceContainer $container, $name, $class) | ||
{ | ||
$container->set('formatter.formatters.nyan.' . $name, function ($c) use ($class) { | ||
$container->define('formatter.formatters.nyan.' . $name, function ($c) use ($class) { | ||
/** @var ServiceContainer $c */ | ||
return new $class( | ||
$c->get('formatter.presenter'), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
use PhpSpec\Event\SuiteEvent; | ||
use PhpSpec\Event\ExampleEvent; | ||
use PhpSpec\Formatter\DotFormatter; | ||
use PhpSpec\Formatter\ConsoleFormatter; | ||
|
||
use NyanCat\Cat; | ||
use NyanCat\Rainbow; | ||
|
@@ -21,7 +21,7 @@ | |
* @author Jeff Welch <[email protected]> | ||
* @author Matthew Davis <[email protected]> | ||
*/ | ||
class NyanFormatter extends DotFormatter | ||
class NyanFormatter extends ConsoleFormatter | ||
{ | ||
/** | ||
* The number of examples | ||
|