| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function testAsk() { |
||
| 38 | $this->assertEmpty( |
||
| 39 | $this->getScribuntoLuaLibrary()->ask( null )[0] |
||
| 40 | ); |
||
| 41 | $this->assertEmpty( |
||
| 42 | $this->getScribuntoLuaLibrary()->ask( '' )[0] |
||
| 43 | ); |
||
| 44 | $this->assertArrayHasKey( |
||
| 45 | 0, |
||
| 46 | $this->getScribuntoLuaLibrary()->ask( '[[Modification date::+]]|?Modification date|limit=2|mainlabel=main' ) |
||
| 47 | ); |
||
| 48 | // invalid query |
||
| 49 | $this->assertInternalType( |
||
| 50 | 'null', |
||
| 51 | $this->getScribuntoLuaLibrary()->ask( '?Modification date|limit=2|mainlabel=main' )[0] |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | } |