@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\Prophecy\Comparator; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | use Prophecy\Prophet; |
| 8 | 7 | |
| 9 | 8 | class ProphecyComparatorSpec extends ObjectBehavior |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\Prophecy\Doubler\ClassPatch; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | use Prophecy\Doubler\Generator\Node\ClassNode; |
| 8 | 7 | use Prophecy\Doubler\Generator\Node\MethodNode; |
| 9 | 8 | |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\Prophecy\Doubler\ClassPatch; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | -use Prophecy\Argument; |
|
| 7 | 6 | use Prophecy\Doubler\Generator\Node\ArgumentNode; |
| 8 | 7 | use Prophecy\Doubler\Generator\Node\ClassNode; |
| 9 | 8 | use Prophecy\Doubler\Generator\Node\MethodNode; |
@@ -2,9 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace spec\Prophecy\Doubler\Generator; |
| 4 | 4 | |
| 5 | -use phpDocumentor\Reflection\DocBlock\Tags\Method; |
|
| 6 | 5 | use PhpSpec\ObjectBehavior; |
| 7 | -use Prophecy\Argument; |
|
| 8 | 6 | use Prophecy\Doubler\Generator\Node\ArgumentNode; |
| 9 | 7 | use Prophecy\Doubler\Generator\Node\ClassNode; |
| 10 | 8 | use Prophecy\Doubler\Generator\Node\MethodNode; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace spec\Prophecy\Prediction; |
| 4 | 4 | |
| 5 | 5 | use PhpSpec\ObjectBehavior; |
| 6 | - |
|
| 7 | 6 | use Prophecy\Call\Call; |
| 8 | 7 | use Prophecy\Prophecy\MethodProphecy; |
| 9 | 8 | use Prophecy\Prophecy\ObjectProphecy; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace spec\Prophecy\Prophecy; |
| 4 | 4 | |
| 5 | -use phpDocumentor\Reflection\DocBlock\Tags\Method; |
|
| 6 | 5 | use PhpSpec\ObjectBehavior; |
| 7 | 6 | use Prophecy\Argument; |
| 8 | 7 | use Prophecy\Argument\ArgumentsWildcard; |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | public $errors; |
| 146 | 146 | public $value = null; |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $value |
|
| 150 | + */ |
|
| 148 | 151 | public function __construct($value) |
| 149 | 152 | { |
| 150 | 153 | $this->value = $value; |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | /** |
| 46 | 46 | * Scores 10 if argument matches preset value. |
| 47 | 47 | * |
| 48 | - * @param $argument |
|
| 48 | + * @param string $argument |
|
| 49 | 49 | * |
| 50 | 50 | * @return bool|int |
| 51 | 51 | */ |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | ); |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $methodName |
|
| 150 | + */ |
|
| 148 | 151 | private function createUnexpectedCallException(ObjectProphecy $prophecy, $methodName, |
| 149 | 152 | array $arguments) |
| 150 | 153 | { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @param ObjectProphecy $objectProphecy |
| 42 | 42 | * @param string $methodName |
| 43 | - * @param null|Argument\ArgumentsWildcard|array $arguments |
|
| 43 | + * @param Argument\ArgumentsWildcard $arguments |
|
| 44 | 44 | * |
| 45 | 45 | * @throws \Prophecy\Exception\Doubler\MethodNotFoundException If method not found |
| 46 | 46 | */ |
@@ -281,7 +281,7 @@ discard block |
||
| 281 | 281 | /** |
| 282 | 282 | * Checks provided prediction immediately. |
| 283 | 283 | * |
| 284 | - * @param callable|Prediction\PredictionInterface $prediction |
|
| 284 | + * @param Prediction\PredictionInterface $prediction |
|
| 285 | 285 | * |
| 286 | 286 | * @return $this |
| 287 | 287 | * |