| Conditions | 1 |
| Paths | 1 |
| Total Lines | 38 |
| Code Lines | 31 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testRender() |
||
| 13 | { |
||
| 14 | $fontResolver = function () { |
||
| 15 | }; |
||
| 16 | $text = 111111111111; |
||
| 17 | $width = 104; |
||
| 18 | $height = 102; |
||
| 19 | |||
| 20 | $canvas = m::mock(Image::class) |
||
| 21 | ->shouldReceive('text') |
||
| 22 | ->with('r{{{{{|BBRBRR{|{111110|', 52, $height, m::type('callable')) |
||
| 23 | ->shouldReceive('resize') |
||
| 24 | ->getMock(); |
||
| 25 | |||
| 26 | $imageManager = m::mock(ImageManager::class) |
||
| 27 | ->shouldReceive('canvas') |
||
| 28 | ->with($width, $height, '#000') |
||
| 29 | ->andReturn($canvas) |
||
| 30 | ->getMock(); |
||
| 31 | |||
| 32 | $renderer = m::mock(BarcodeRenderer::class) |
||
| 33 | ->shouldAllowMockingProtectedMethods() |
||
| 34 | ->shouldReceive('getWidth') |
||
| 35 | ->andReturn($width) |
||
| 36 | ->shouldReceive('getHeight') |
||
| 37 | ->andReturn($height) |
||
| 38 | ->shouldReceive('getImageManager') |
||
| 39 | ->andReturn($imageManager) |
||
| 40 | ->shouldReceive('getFontResolver') |
||
| 41 | ->andReturn($fontResolver) |
||
| 42 | ->shouldReceive('getFontFace') |
||
| 43 | ->shouldReceive('getFontSize') |
||
| 44 | ->shouldReceive('getText') |
||
| 45 | ->andReturn($text) |
||
| 46 | ->getMock() |
||
| 47 | ->makePartial(); |
||
| 48 | |||
| 49 | $this->assertSame($canvas, $renderer->render()); |
||
| 50 | } |
||
| 52 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths