| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | public function testGet() |
||
| 6 | { |
||
| 7 | $aimeos = $this->app->make( '\Aimeos\Shop\Base\Aimeos' ); |
||
|
|
|||
| 8 | |||
| 9 | $configMock = $this->getMockBuilder( '\Illuminate\Config\Repository' ) |
||
| 10 | ->onlyMethods( array( 'get' ) )->getMock(); |
||
| 11 | |||
| 12 | $configMock->expects( $this->exactly( 4 ) )->method( 'get' ) |
||
| 13 | ->will( $this->onConsecutiveCalls( true, 'laravel:', array(), array() ) ); |
||
| 14 | |||
| 15 | $object = new \Aimeos\Shop\Base\Config( $configMock, $aimeos ); |
||
| 16 | |||
| 17 | $this->assertInstanceOf( '\Aimeos\Base\Config\Iface', $object->get() ); |
||
| 18 | } |
||
| 20 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.