Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function testAsk() |
||
35 | { |
||
36 | // test data |
||
37 | $this->subjectUnderTest->query('INSERT INTO <http://example.com/> { |
||
38 | <http://s> <http://p1> "baz" . |
||
39 | }'); |
||
40 | |||
41 | $sparql = 'ASK FROM <http://example.com/> {<http://s> <http://p1> ?o.}'; |
||
42 | $result = $this->subjectUnderTest->query($sparql, 'instances'); |
||
43 | $this->assertEquals(new Literal(true), $result); |
||
44 | |||
45 | $sparql = 'ASK FROM <http://example.com/> {<http://foo> <http://bar> ?o.}'; |
||
46 | $result = $this->subjectUnderTest->query($sparql, 'instances'); |
||
47 | $this->assertEquals(new Literal(false), $result); |
||
48 | } |
||
50 |