Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public function testFormat( $name ) { |
||
17 | $formatter = new QueryFormatter(); |
||
18 | $sparql = file_get_contents( __DIR__ . '/../data/formatter_' . $name . '_in.rq' ); |
||
19 | $expected = file_get_contents( __DIR__ . '/../data/formatter_' . $name . '_out.rq' ); |
||
20 | |||
21 | $this->assertEquals( $expected, $formatter->format( $sparql ), |
||
22 | 'Input from formatter_' . $name . '_in.rq didn\'t produce the expected output.' ); |
||
23 | } |
||
24 | |||
34 |