| <?php |
| |
| class ezcWebdavLockPluginClientTestAssertions008 |
| { |
| public function assertLockDiscoveryPropertyNowhere( ezcWebdavMemoryBackend $backend ) |
| { |
| $prop = $backend->getProperty( '/collection', 'lockdiscovery' ); |
| |
| PHPUnit_Framework_Assert::assertNull( |
| $prop |
| ); |
| |
| $prop = $backend->getProperty( '/collection/resource.html', 'lockdiscovery' ); |
| |
| PHPUnit_Framework_Assert::assertInstanceOf( |
| 'ezcWebdavLockDiscoveryProperty', |
| $prop, |
| 'Property has incorrect type.' |
| ); |
| PHPUnit_Framework_Assert::assertEquals( |
| 0, |
| count( $prop->activeLock ), |
| 'Active lock element not removed correctly.' |
| ); |
| } |
| } |
| |
| return new ezcWebdavLockPluginClientTestAssertions008(); |
| |
| ?> |