nodeExists( '/collection/resource.html' ) ); } public function assertDestinationSourceStillCorrect( ezcWebdavMemoryBackend $backend ) { $prop = $backend->getProperty( '/collection', 'lockdiscovery' ); PHPUnit_Framework_Assert::assertNotNull( $prop, 'Lock discovery property set on source parent.' ); PHPUnit_Framework_Assert::assertEquals( 1, count( $prop->activeLock ), 'Active lock available not on source parent.' ); $prop = $backend->getProperty( '/collection/resource.html', 'lockdiscovery' ); PHPUnit_Framework_Assert::assertNotNull( $prop, 'Lock discovery property set on source.' ); PHPUnit_Framework_Assert::assertEquals( 1, count( $prop->activeLock ), 'Active lock available not on source.' ); } public function assertDestinationNotExists( ezcWebdavMemoryBackend $backend ) { PHPUnit_Framework_Assert::assertFalse( $backend->nodeExists( '/other_collection/moved_resource.html' ) ); } } return new ezcWebdavLockPluginClientTestAssertions019(); ?>