@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use PhpSpec\Formatter\Presenter\PresenterInterface; |
| 8 | 8 | use PhpSpec\Listener\StatisticsCollector; |
| 9 | 9 | use PhpSpec\ObjectBehavior; |
| 10 | -use Prophecy\Argument; |
|
| 11 | 10 | |
| 12 | 11 | class ProgressFormatterSpec extends ObjectBehavior |
| 13 | 12 | { |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use PhpSpec\Formatter\Presenter\PresenterInterface; |
| 12 | 12 | use PhpSpec\Listener\StatisticsCollector; |
| 13 | 13 | use PhpSpec\ObjectBehavior; |
| 14 | -use Prophecy\Argument; |
|
| 15 | 14 | |
| 16 | 15 | class TapFormatterSpec extends ObjectBehavior |
| 17 | 16 | { |
@@ -4,14 +4,11 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use Prophecy\Argument; |
| 7 | - |
|
| 8 | 7 | use PhpSpec\Console\IO; |
| 9 | 8 | use PhpSpec\Locator\ResourceManager; |
| 10 | 9 | use PhpSpec\CodeGenerator\GeneratorManager; |
| 11 | 10 | use PhpSpec\Event\ExampleEvent; |
| 12 | 11 | use PhpSpec\Event\SuiteEvent; |
| 13 | -use PhpSpec\Exception\Fracture\ClassNotFoundException as PhpSpecClassException; |
|
| 14 | - |
|
| 15 | 12 | use Prophecy\Exception\Doubler\ClassNotFoundException as ProphecyClassException; |
| 16 | 13 | |
| 17 | 14 | class ClassNotFoundListenerSpec extends ObjectBehavior |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | class ClassNotFoundListenerSpec extends ObjectBehavior |
| 18 | 18 | { |
| 19 | 19 | function let(IO $io, ResourceManager $resourceManager, GeneratorManager $generatorManager, |
| 20 | - SuiteEvent $suiteEvent, ExampleEvent $exampleEvent) |
|
| 20 | + SuiteEvent $suiteEvent, ExampleEvent $exampleEvent) |
|
| 21 | 21 | { |
| 22 | 22 | $io->writeln(Argument::any())->willReturn(); |
| 23 | 23 | $io->askConfirmation(Argument::any())->willReturn(); |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use PhpSpec\Event\SuiteEvent; |
| 7 | 7 | use PhpSpec\Message\CurrentExampleTracker; |
| 8 | 8 | use PhpSpec\ObjectBehavior; |
| 9 | -use Prophecy\Argument; |
|
| 10 | 9 | |
| 11 | 10 | class CurrentExampleListenerSpec extends ObjectBehavior |
| 12 | 11 | { |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | $fatalError = '3'; |
| 51 | 51 | $currentExample = new CurrentExampleTracker(); |
| 52 | - $currentExample->setCurrentExample("Exited with code: " . $fatalError); |
|
| 52 | + $currentExample->setCurrentExample("Exited with code: ".$fatalError); |
|
| 53 | 53 | $example->getResult()->willReturn($fatalError); |
| 54 | 54 | $this->afterSuiteEvent($example); |
| 55 | 55 | $example->getResult()->shouldHaveBeenCalled(); |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use Prophecy\Argument; |
| 7 | - |
|
| 8 | 7 | use PhpSpec\Console\IO; |
| 9 | 8 | use PhpSpec\Locator\ResourceManager; |
| 10 | 9 | use PhpSpec\CodeGenerator\GeneratorManager; |
@@ -105,6 +105,10 @@ |
||
| 105 | 105 | $this->afterSuite($suiteEvent); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | + /** |
|
| 109 | + * @param NameCheckerInterface $nameChecker |
|
| 110 | + * @param string $method |
|
| 111 | + */ |
|
| 108 | 112 | private function callAfterExample($exampleEvent, $nameChecker, $method, $isNameValid = true) |
| 109 | 113 | { |
| 110 | 114 | $exception = new MethodNotFoundException('Error', new \stdClass(), $method); |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | 7 | use PhpSpec\Process\Prerequisites\SuitePrerequisitesInterface; |
| 8 | 8 | use PhpSpec\Process\ReRunner; |
| 9 | -use Prophecy\Argument; |
|
| 10 | 9 | |
| 11 | 10 | class RerunListenerSpec extends ObjectBehavior |
| 12 | 11 | { |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use PhpSpec\Loader\Node\SpecificationNode; |
| 9 | 9 | use PhpSpec\Loader\Suite; |
| 10 | 10 | use PhpSpec\ObjectBehavior; |
| 11 | -use Prophecy\Argument; |
|
| 12 | 11 | |
| 13 | 12 | class StatisticsCollectorSpec extends ObjectBehavior |
| 14 | 13 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace spec\PhpSpec\Listener; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | - |
|
| 8 | 6 | use PhpSpec\Event\ExampleEvent; |
| 9 | 7 | use PhpSpec\Console\IO; |
| 10 | 8 | |
@@ -3,10 +3,7 @@ |
||
| 3 | 3 | namespace spec\PhpSpec\Loader\Node; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | - |
|
| 8 | 6 | use PhpSpec\Loader\Node\SpecificationNode; |
| 9 | - |
|
| 10 | 7 | use ReflectionFunctionAbstract; |
| 11 | 8 | |
| 12 | 9 | class ExampleNodeSpec extends ObjectBehavior |