mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-03 17:44:06 +02:00
Add test case for !$reader->read then break
This commit is contained in:
parent
5ba2a3cc31
commit
1ee911ba45
3 changed files with 38 additions and 3 deletions
|
|
@ -177,4 +177,17 @@ class QueryParserTest extends TestCase {
|
|||
new Order('{DAV:}getcontentlength', \SearchDAV\Query\Order::ASC)
|
||||
], $search->orderBy);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Sabre\Xml\LibXMLException
|
||||
* @expectedExceptionMessage Opening and ending tag mismatch: prop line 17 and gt
|
||||
* on line 19, column 20
|
||||
*
|
||||
* @throws \Sabre\Xml\ParseException
|
||||
*/
|
||||
public function testParseWhereBroken()
|
||||
{
|
||||
$query = file_get_contents(__DIR__ . '/invalidwherebroken.xml');
|
||||
(new QueryParser())->parse($query, null, $rootElementName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue