AppserverIo\Appserver\Naming\NamingDirectoryTest::testTwoLevelDescendingRecursiveSearch PHP Метод

testTwoLevelDescendingRecursiveSearch() публичный Метод

Test the descending recursive search on a directory tree with a two level structure.
public testTwoLevelDescendingRecursiveSearch ( ) : void
Результат void
    public function testTwoLevelDescendingRecursiveSearch()
    {
        // create the two level tree
        $level1 = $this->namingDirectory->createSubdirectory('level1');
        $level1->createSubdirectory('level2');
        // bind a value and search recursive
        $this->namingDirectory->bind($name = 'php:level1/level2/test', $value = 'testValue');
        $this->assertSame($this->namingDirectory->search($name), $value);
    }