Neos\Flow\Tests\Unit\Aop\Builder\ClassNameIndexTest::filterByPrefixWork PHP 메소드

filterByPrefixWork() 공개 메소드

public filterByPrefixWork ( )
    public function filterByPrefixWork()
    {
        $index1 = new Aop\Builder\ClassNameIndex();
        $index1->setClassNames(['\\Foo\\Bar', '\\Foo\\Baz', '\\Bar\\Baz', '\\Foo\\Blubb']);
        // We need to call sort manually!
        $index1->sort();
        $filteredIndex = $index1->filterByPrefix('\\Foo');
        $this->assertEquals(['\\Foo\\Bar', '\\Foo\\Baz', '\\Foo\\Blubb'], $filteredIndex->getClassNames());
    }