|
@@ 399-407 (lines=9) @@
|
| 396 |
|
/** |
| 397 |
|
* @test |
| 398 |
|
*/ |
| 399 |
|
public function it_doesnt_fail_to_typehint_nonexistent_FQCN() |
| 400 |
|
{ |
| 401 |
|
$mirror = new ClassMirror(); |
| 402 |
|
|
| 403 |
|
$classNode = $mirror->reflect(new \ReflectionClass('Fixtures\Prophecy\OptionalDepsClass'), array()); |
| 404 |
|
$method = $classNode->getMethod('iHaveAStrangeTypeHintedArg'); |
| 405 |
|
$arguments = $method->getArguments(); |
| 406 |
|
$this->assertEquals('I\Simply\Am\Nonexistent', $arguments[0]->getTypeHint()); |
| 407 |
|
} |
| 408 |
|
|
| 409 |
|
/** |
| 410 |
|
* @test |
|
@@ 412-420 (lines=9) @@
|
| 409 |
|
/** |
| 410 |
|
* @test |
| 411 |
|
*/ |
| 412 |
|
public function it_doesnt_fail_to_typehint_nonexistent_RQCN() |
| 413 |
|
{ |
| 414 |
|
$mirror = new ClassMirror(); |
| 415 |
|
|
| 416 |
|
$classNode = $mirror->reflect(new \ReflectionClass('Fixtures\Prophecy\OptionalDepsClass'), array()); |
| 417 |
|
$method = $classNode->getMethod('iHaveAnEvenStrangerTypeHintedArg'); |
| 418 |
|
$arguments = $method->getArguments(); |
| 419 |
|
$this->assertEquals('I\Simply\Am\Not', $arguments[0]->getTypeHint()); |
| 420 |
|
} |
| 421 |
|
|
| 422 |
|
/** |
| 423 |
|
* @test |