Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function testResultVariableNotUsedInQuery() |
||
35 | { |
||
36 | $res = $this->subjectUnderTest->query(' |
||
37 | SELECT ?not_used_in_query ?s WHERE { |
||
38 | ?s ?p ?o . |
||
39 | } |
||
40 | '); |
||
41 | |||
42 | $this->assertEquals( |
||
43 | [ |
||
44 | 'query_type' => 'select', |
||
45 | 'result' => [ |
||
46 | 'variables' => [ |
||
47 | 'not_used_in_query', 's', |
||
48 | ], |
||
49 | 'rows' => [ |
||
50 | ], |
||
51 | ], |
||
52 | ], |
||
53 | $res |
||
54 | ); |
||
55 | |||
56 | // TODO not bad if count is higher than 2 |
||
57 | $errors = \count($this->subjectUnderTest->getLoggerPool()->getEntriesFromAllLoggerInstances()); |
||
58 | $this->assertEquals(2, $errors); |
||
59 | } |
||
61 |