| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testInvoke() |
||
| 12 | { |
||
| 13 | $filePath = '/path/to/font'; |
||
| 14 | $resourceExpected = 'resource'; |
||
| 15 | $bmp = m::mock(Bmp::class) |
||
| 16 | ->shouldReceive('create') |
||
| 17 | ->with($filePath) |
||
| 18 | ->andReturn($resourceExpected) |
||
| 19 | ->once() |
||
| 20 | ->getMock(); |
||
| 21 | |||
| 22 | $graphicResolver = new GraphicResolverFilePath($bmp); |
||
| 23 | $resourceActual = $graphicResolver($filePath); |
||
| 24 | |||
| 25 | $this->assertEquals($resourceExpected, $resourceActual); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |