user_saml/tests/integration/vendor/behat/behat/src/Behat/Behat/Context/ContextClass/ClassGenerator.php
Arthur Schiwon 3435d5093a
update behat and deps
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 17:00:47 +02:00

45 lines
1 KiB
PHP

<?php
/*
* This file is part of the Behat.
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Behat\Behat\Context\ContextClass;
use Behat\Behat\Context\Suite\Setup\SuiteWithContextsSetup;
use Behat\Testwork\Suite\Suite;
/**
* Generates context classes (as a string).
*
* @see SuiteWithContextsSetup
*
* @author Konstantin Kudryashov <ever.zet@gmail.com>
*/
interface ClassGenerator
{
/**
* Checks if generator supports provided context class.
*
* @param Suite $suite
* @param string $contextClass
*
* @return bool
*/
public function supportsSuiteAndClass(Suite $suite, $contextClass);
/**
* Generates context class code.
*
* @param Suite $suite
* @param string $contextClass
*
* @return string The context class source code
*/
public function generateClass(Suite $suite, $contextClass);
}