Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function testCheck($coverage, $expected) |
||
20 | { |
||
21 | $check = $this->getMockBuilder(CodeCoverageGoodCheck::class) |
||
22 | ->setMethods(['getCoverage']) |
||
23 | ->getMock(); |
||
24 | |||
25 | $check->expects($this->once())->method('getCoverage')->willReturn($coverage); |
||
26 | |||
27 | $check->run(); |
||
28 | |||
29 | $this->assertSame($expected, $check->getSuccessful()); |
||
30 | } |
||
44 |