mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-14 14:46:06 +02:00
3435d5093a
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
45 lines
1 KiB
PHP
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);
|
|
}
|