"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/Sabre/DAVACL/PrincipalBackend/AbstractPDOTest.php" between
dav-4.0.2.tar.gz and dav-4.0.3.tar.gz

About: sabre/dav is a WebDAV framework for PHP allowing to create WebDAV, CalDAV and CardDAV servers.

AbstractPDOTest.php  (dav-4.0.2):AbstractPDOTest.php  (dav-4.0.3)
skipping to change at line 193 skipping to change at line 193
], $backend->getPrincipalByPath('principals/user')); ], $backend->getPrincipalByPath('principals/user'));
} }
public function testFindByUriUnknownScheme() public function testFindByUriUnknownScheme()
{ {
$pdo = $this->getPDO(); $pdo = $this->getPDO();
$backend = new PDO($pdo); $backend = new PDO($pdo);
$this->assertNull($backend->findByUri('http://foo', 'principals')); $this->assertNull($backend->findByUri('http://foo', 'principals'));
} }
public function testFindByUri() public function testFindByUriWithMailtoAddress()
{ {
$pdo = $this->getPDO(); $pdo = $this->getPDO();
$backend = new PDO($pdo); $backend = new PDO($pdo);
$this->assertEquals( $this->assertEquals(
'principals/user', 'principals/user',
$backend->findByUri('mailto:user@example.org', 'principals') $backend->findByUri('mailto:user@example.org', 'principals')
); );
} }
public function testFindByUriWithUri()
{
$pdo = $this->getPDO();
$backend = new PDO($pdo);
$this->assertEquals(
'principals/user',
$backend->findByUri('principals/user', 'principals')
);
}
public function testFindByUriWithUnknownUri()
{
$pdo = $this->getPDO();
$backend = new PDO($pdo);
$this->assertNull($backend->findByUri('principals/other', 'principals'))
;
}
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)