Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function testInterfaceMethods() { |
||
27 | |||
28 | $instance = new NullCallbackInstantiator(); |
||
29 | |||
30 | $this->assertNull( |
||
31 | $instance->create( 'Foo' ) |
||
32 | ); |
||
33 | |||
34 | $this->assertNull( |
||
35 | $instance->singleton( 'Foo' ) |
||
36 | ); |
||
37 | |||
38 | $this->assertNull( |
||
39 | $instance->registerExpectedReturnType( 'Foo', 'bar' ) |
||
40 | ); |
||
41 | |||
42 | $this->assertNull( |
||
43 | $instance->registerCallback( 'Foo', function() {} ) |
||
44 | ); |
||
45 | |||
46 | $callbackContainer = $this->getMockBuilder( '\Onoi\CallbackContainer\CallbackContainer' ) |
||
47 | ->disableOriginalConstructor() |
||
48 | ->getMock(); |
||
49 | |||
50 | $this->assertNull( |
||
51 | $instance->registerCallbackContainer( $callbackContainer ) |
||
52 | ); |
||
53 | } |
||
54 | |||
56 |