Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function setUp() |
||
14 | { |
||
15 | $this->renderer = m::mock(AbstractRenderer::class)->makePartial(); |
||
16 | |||
17 | $parser = m::mock(ParserInterface::class) |
||
18 | ->shouldReceive('getPositionX') |
||
19 | ->andReturn(2) |
||
20 | ->shouldReceive('getPositionY') |
||
21 | ->andReturn(3) |
||
22 | ->shouldReceive('getWidth') |
||
23 | ->andReturn(4) |
||
24 | ->shouldReceive('getHeight') |
||
25 | ->andReturn(5) |
||
26 | ->getMock() |
||
27 | ->makePartial(); |
||
28 | |||
29 | $this->renderer->setParser($parser); |
||
30 | |||
31 | $this->renderer->setScale(10.2); |
||
32 | } |
||
33 | |||
54 |