| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 35 | 
| Code Lines | 29 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function testRender()  | 
            ||
| 13 |     { | 
            ||
| 14 | $width = 20;  | 
            ||
| 15 | $height = 22;  | 
            ||
| 16 | $lineWeight = 10;  | 
            ||
| 17 | $tracerColour = '#ccc';  | 
            ||
| 18 | |||
| 19 | $canvas = m::mock(Image::class)  | 
            ||
| 20 |             ->shouldReceive('rectangle') | 
            ||
| 21 |             ->with(0, 0, 10, 12, m::type('callable')) | 
            ||
| 22 | ->getMock();  | 
            ||
| 23 | |||
| 24 | $imageManager = m::mock(ImageManager::class)  | 
            ||
| 25 |             ->shouldReceive('canvas') | 
            ||
| 26 | ->with($width, $height, $tracerColour)  | 
            ||
| 27 | ->andReturn($canvas)  | 
            ||
| 28 | ->getMock();  | 
            ||
| 29 | |||
| 30 | $renderer = m::mock(OutlineBoxRenderer::class)  | 
            ||
| 31 | ->shouldAllowMockingProtectedMethods()  | 
            ||
| 32 |             ->shouldReceive('getWidth') | 
            ||
| 33 | ->andReturn($width)  | 
            ||
| 34 |             ->shouldReceive('getHeight') | 
            ||
| 35 | ->andReturn($height)  | 
            ||
| 36 |             ->shouldReceive('getTracerColour') | 
            ||
| 37 | ->andReturn($tracerColour)  | 
            ||
| 38 |             ->shouldReceive('getLineWeight') | 
            ||
| 39 | ->andReturn($lineWeight)  | 
            ||
| 40 |             ->shouldReceive('getImageManager') | 
            ||
| 41 | ->andReturn($imageManager)  | 
            ||
| 42 | ->getMock()  | 
            ||
| 43 | ->makePartial();  | 
            ||
| 44 | |||
| 45 | $this->assertEquals($canvas, $renderer->render());  | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |