protected function behatTagsFactory(array $tags)
    {
        $fileTokens = [];

        $files = Finder::create()->files()->in($this->plugin->directory)->path('tests/behat')->name('*.feature')->getIterator();
        foreach ($files as $file) {
            $fileTokens[] = FileTokens::create($file->getRelativePathname())->mustHaveAll($tags);
        }

        return $fileTokens;
    }
protected function behatTagsFactory(array $tags)
    {
        $fileTokens = [];

        $files = Finder::create()->files()->in($this->plugin->directory)->path('tests/behat')->name('*.feature')->getIterator();
        foreach ($files as $file) {
            $fileTokens[] = FileTokens::create($file->getRelativePathname())->mustHaveAll($tags);
        }

        return $fileTokens;
    }
protected function behatTagsFactory ( array $ tags ) { $ fileTokens = [ ] ; $ files = Finder :: create ( ) -> files ( ) -> in ( $ this -> plugin -> directory ) -> path ( 'tests/behat' ) -> name ( '*.feature' ) -> getIterator ( ) ; foreach ( $ files as $ file ) { $ fileTokens [ ] = FileTokens :: create ( $ file -> getRelativePathname ( ) ) -> mustHaveAll ( $ tags ) ; } return $ fileTokens ; }
Factory method for generating FileTokens instances for all feature files in a plugin.

@param array $tags

@return FileTokens[]
Factory method for generating FileTokens instances for all feature files in a plugin .