@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use Prophecy\Argument; |
| 7 | - |
|
| 8 | 7 | use PhpSpec\Loader\Node\SpecificationNode; |
| 9 | 8 | |
| 10 | 9 | class SuiteSpec extends ObjectBehavior |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\CodeAnalysis\DisallowedScalarTypehintException; |
| 6 | 6 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 7 | |
| 9 | 8 | class InMemoryTypeHintIndexSpec extends ObjectBehavior |
| 10 | 9 | { |
@@ -3,9 +3,7 @@ |
||
| 3 | 3 | namespace spec\PhpSpec\Loader\Transformer; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\CodeAnalysis\TypeHintRewriter; |
| 6 | -use PhpSpec\Loader\Transformer\TypeHintIndex; |
|
| 7 | 6 | use PhpSpec\ObjectBehavior; |
| 8 | -use Prophecy\Argument; |
|
| 9 | 7 | |
| 10 | 8 | class TypeHintRewriterSpec extends ObjectBehavior |
| 11 | 9 | { |
@@ -521,6 +521,9 @@ |
||
| 521 | 521 | $this->supportsQuery('Test\\Namespace\\PhpSpec\\Console\\Application')->shouldReturn(true); |
| 522 | 522 | } |
| 523 | 523 | |
| 524 | + /** |
|
| 525 | + * @param string $path |
|
| 526 | + */ |
|
| 524 | 527 | private function convert_to_path($path) |
| 525 | 528 | { |
| 526 | 529 | if ('/' === DIRECTORY_SEPARATOR) { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use PhpSpec\Util\Filesystem; |
| 7 | - |
|
| 8 | 7 | use SplFileInfo; |
| 9 | 8 | |
| 10 | 9 | class PSR0LocatorSpec extends ObjectBehavior |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\PhpSpec\Locator\PSR0; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | - |
|
| 7 | 6 | use PhpSpec\Locator\PSR0\PSR0Locator as Locator; |
| 8 | 7 | |
| 9 | 8 | class PSR0ResourceSpec extends ObjectBehavior |
@@ -107,6 +107,9 @@ |
||
| 107 | 107 | $this->getSpecFilename()->shouldReturn($this->convert_to_path('/local/spec/usr/lib/config_testSpec.php')); |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param string $path |
|
| 112 | + */ |
|
| 110 | 113 | private function convert_to_path($path) |
| 111 | 114 | { |
| 112 | 115 | if ('/' === DIRECTORY_SEPARATOR) { |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\PhpSpec\Locator; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | - |
|
| 7 | 6 | use PhpSpec\Locator\ResourceLocatorInterface; |
| 8 | 7 | use PhpSpec\Locator\ResourceInterface; |
| 9 | 8 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use Prophecy\Argument; |
| 7 | - |
|
| 8 | 7 | use PhpSpec\Formatter\Presenter\PresenterInterface; |
| 9 | 8 | |
| 10 | 9 | class ArrayContainMatcherSpec extends ObjectBehavior |
@@ -34,13 +34,13 @@ |
||
| 34 | 34 | |
| 35 | 35 | function it_does_not_match_array_without_specified_value() |
| 36 | 36 | { |
| 37 | - $this->shouldThrow()->duringPositiveMatch('contain', array(1,2,3), array('abc')); |
|
| 37 | + $this->shouldThrow()->duringPositiveMatch('contain', array(1, 2, 3), array('abc')); |
|
| 38 | 38 | $this->shouldThrow('PhpSpec\Exception\Example\FailureException') |
| 39 | - ->duringPositiveMatch('contain', array(1,2,3), array(new \stdClass())); |
|
| 39 | + ->duringPositiveMatch('contain', array(1, 2, 3), array(new \stdClass())); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | function it_matches_array_without_specified_value() |
| 43 | 43 | { |
| 44 | - $this->shouldNotThrow()->duringNegativeMatch('contain', array(1,2,3), array('abc')); |
|
| 44 | + $this->shouldNotThrow()->duringNegativeMatch('contain', array(1, 2, 3), array('abc')); |
|
| 45 | 45 | } |
| 46 | 46 | } |
@@ -4,10 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use Prophecy\Argument; |
| 7 | - |
|
| 8 | 7 | use PhpSpec\Formatter\Presenter\PresenterInterface; |
| 9 | 8 | use PhpSpec\Exception\Example\FailureException; |
| 10 | - |
|
| 11 | 9 | use ArrayObject; |
| 12 | 10 | |
| 13 | 11 | class ArrayCountMatcherSpec extends ObjectBehavior |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | function it_matches_proper_array_count() |
| 34 | 34 | { |
| 35 | - $this->shouldNotThrow()->duringPositiveMatch('haveCount', array(1,2,3), array(3)); |
|
| 35 | + $this->shouldNotThrow()->duringPositiveMatch('haveCount', array(1, 2, 3), array(3)); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | function it_matches_proper_countable_count(ArrayObject $countable) |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | function it_does_not_match_wrong_array_count() |
| 46 | 46 | { |
| 47 | 47 | $this->shouldThrow(new FailureException('Expected countable to have 2 items, but got 3.')) |
| 48 | - ->duringPositiveMatch('haveCount', array(1,2,3), array(2)); |
|
| 48 | + ->duringPositiveMatch('haveCount', array(1, 2, 3), array(2)); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | function it_does_not_match_proper_countable_count(ArrayObject $countable) |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | function it_mismatches_wrong_array_count() |
| 60 | 60 | { |
| 61 | - $this->shouldNotThrow()->duringNegativeMatch('haveCount', array(1,2,3), array(2)); |
|
| 61 | + $this->shouldNotThrow()->duringNegativeMatch('haveCount', array(1, 2, 3), array(2)); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | function it_mismatches_wrong_countable_count(ArrayObject $countable) |
@@ -4,9 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | 6 | use Prophecy\Argument; |
| 7 | - |
|
| 8 | 7 | use PhpSpec\Formatter\Presenter\PresenterInterface; |
| 9 | - |
|
| 10 | 8 | use ArrayObject; |
| 11 | 9 | |
| 12 | 10 | class ArrayKeyMatcherSpec extends ObjectBehavior |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | function it_does_not_match_array_without_specified_key() |
| 50 | 50 | { |
| 51 | - $this->shouldThrow()->duringPositiveMatch('haveKey', array(1,2,3), array('abc')); |
|
| 51 | + $this->shouldThrow()->duringPositiveMatch('haveKey', array(1, 2, 3), array('abc')); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | function it_does_not_match_ArrayObject_without_provided_offset(ArrayObject $array) |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | function it_matches_array_without_specified_key() |
| 62 | 62 | { |
| 63 | - $this->shouldNotThrow()->duringNegativeMatch('haveKey', array(1,2,3), array('abc')); |
|
| 63 | + $this->shouldNotThrow()->duringNegativeMatch('haveKey', array(1, 2, 3), array('abc')); |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | function it_matches_ArrayObject_without_specified_offset(ArrayObject $array) |