X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FTestwork%2FSuite%2FGenerator%2FGenericSuiteGenerator.php;fp=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FTestwork%2FSuite%2FGenerator%2FGenericSuiteGenerator.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=36f6141c41148c251c73eee0587c948c4ef8dbad;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/behat/behat/src/Behat/Testwork/Suite/Generator/GenericSuiteGenerator.php b/vendor/behat/behat/src/Behat/Testwork/Suite/Generator/GenericSuiteGenerator.php deleted file mode 100644 index 36f6141c4..000000000 --- a/vendor/behat/behat/src/Behat/Testwork/Suite/Generator/GenericSuiteGenerator.php +++ /dev/null @@ -1,64 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace Behat\Testwork\Suite\Generator; - -use Behat\Testwork\Suite\GenericSuite; - -/** - * Generates generic test suites. - * - * @author Konstantin Kudryashov - */ -final class GenericSuiteGenerator implements SuiteGenerator -{ - /** - * @var array - */ - private $defaultSettings = array(); - - /** - * Initializes suite generator. - * - * @param array $defaultSettings - */ - public function __construct(array $defaultSettings = array()) - { - $this->defaultSettings = $defaultSettings; - } - - /** - * {@inheritdoc} - */ - public function supportsTypeAndSettings($type, array $settings) - { - return null === $type; - } - - /** - * {@inheritdoc} - */ - public function generateSuite($suiteName, array $settings) - { - return new GenericSuite($suiteName, $this->mergeDefaultSettings($settings)); - } - - /** - * Merges provided settings into default ones. - * - * @param array $settings - * - * @return array - */ - private function mergeDefaultSettings(array $settings) - { - return array_merge($this->defaultSettings, $settings); - } -}