| @@ 653-666 (lines=14) @@ | ||
| 650 | /** |
|
| 651 | * disabled for now |
|
| 652 | */ |
|
| 653 | public function testStaticInjections() |
|
| 654 | { |
|
| 655 | $injector = new Injector(); |
|
| 656 | $config = array( |
|
| 657 | NewRequirementsBackend::class, |
|
| 658 | ); |
|
| 659 | ||
| 660 | $injector->load($config); |
|
| 661 | ||
| 662 | $si = $injector->get(TestStaticInjections::class); |
|
| 663 | $this->assertInstanceOf( |
|
| 664 | NewRequirementsBackend::class, |
|
| 665 | $si->backend |
|
| 666 | ); |
|
| 667 | } |
|
| 668 | ||
| 669 | public function testSetterInjections() |
|
| @@ 669-682 (lines=14) @@ | ||
| 666 | ); |
|
| 667 | } |
|
| 668 | ||
| 669 | public function testSetterInjections() |
|
| 670 | { |
|
| 671 | $injector = new Injector(); |
|
| 672 | $config = array( |
|
| 673 | NewRequirementsBackend::class, |
|
| 674 | ); |
|
| 675 | ||
| 676 | $injector->load($config); |
|
| 677 | ||
| 678 | $si = $injector->get(TestSetterInjections::class); |
|
| 679 | $this->assertInstanceOf( |
|
| 680 | NewRequirementsBackend::class, |
|
| 681 | $si->getBackend() |
|
| 682 | ); |
|
| 683 | } |
|
| 684 | ||
| 685 | public function testCustomObjectCreator() |
|