芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/behat/gherkin/src/Behat/Gherkin/Filter/ComplexFilter.php
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Behat\Gherkin\Filter; use Behat\Gherkin\Node\FeatureNode; /** * Abstract filter class. * * @author Konstantin Kudryashov
*/ abstract class ComplexFilter implements ComplexFilterInterface { /** * Filters feature according to the filter. * * @param FeatureNode $feature * * @return FeatureNode */ public function filterFeature(FeatureNode $feature) { $scenarios = array(); foreach ($feature->getScenarios() as $scenario) { if (!$this->isScenarioMatch($feature, $scenario)) { continue; } $scenarios[] = $scenario; } return new FeatureNode( $feature->getTitle(), $feature->getDescription(), $feature->getTags(), $feature->getBackground(), $scenarios, $feature->getKeyword(), $feature->getLanguage(), $feature->getFile(), $feature->getLine() ); } }