| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class HasFunctionCheckTest extends SapphireTest |
||
| 17 | { |
||
| 18 | public function testCheckReportsMissingFunctions() |
||
| 19 | { |
||
| 20 | $check = new HasFunctionCheck('foo'); |
||
| 21 | |||
| 22 | $expected = [ |
||
| 23 | EnvironmentCheck::ERROR, |
||
| 24 | 'foo() doesn\'t exist' |
||
| 25 | ]; |
||
| 26 | |||
| 27 | $this->assertEquals($expected, $check->check()); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function testCheckReportsFoundFunctions() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |