public function testSearchForASubdirectory()
{
// create a three level directory
$level1 = $this->namingDirectory->createSubdirectory('level1');
$level2 = $level1->createSubdirectory('level2');
$level2->createSubdirectory('level3');
// search for the last created subdirectory
$this->assertSame('.', $this->namingDirectory->search('php:level1/level2/level3'));
}