PHPUnit_Extensions_Story_Scenario::__construct PHP Method

__construct() public method

Constructor.
public __construct ( $test )
    public function __construct($test)
    {
        if ($test instanceof PHPUnit_Extensions_Story_TestCase || $test instanceof PHPUnit_Extensions_Story_SeleniumTestCase) {
            $this->test = $test;
        } else {
            throw new Exception('$test must either be PHPUnit_Extensions_Story_TestCase or PHPUnit_Extensions_Story_SeleniumTestCase');
        }
    }