| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testCanBuildAdapterWithSoapRpcClient() : void |
||
| 26 | { |
||
| 27 | $client = $this->getMockBuilder(Client::class)->setMethods(['call'])->getMock(); |
||
|
|
|||
| 28 | |||
| 29 | $adapter = new Soap($client); |
||
| 30 | |||
| 31 | $client |
||
| 32 | ->expects(self::once()) |
||
| 33 | ->method('call') |
||
| 34 | ->with('bar', ['tab' => 'taz']) |
||
| 35 | ->willReturn('baz'); |
||
| 36 | |||
| 37 | self::assertSame('baz', $adapter->call('foo', 'bar', ['tab' => 'taz'])); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.