コード例 #1
0
 /**
  * Initializes event.
  *
  * @param Environment           $env
  * @param SpecificationIterator $iterator
  * @param TestResult            $result
  * @param Teardown              $teardown
  */
 public function __construct(Environment $env, SpecificationIterator $iterator, TestResult $result, Teardown $teardown)
 {
     parent::__construct($env);
     $this->iterator = $iterator;
     $this->result = $result;
     $this->teardown = $teardown;
 }
コード例 #2
0
 /**
  * beforeSuite
  *
  * @param SuiteTested $event
  */
 public function beforeSuite(SuiteTested $event)
 {
     $suite = $event->getSuite();
     $testsuite = $this->xml->addChild('testsuite');
     $testsuite->addAttribute('name', $suite->getName());
 }
コード例 #3
0
 /**
  * Initializes event.
  *
  * @param Environment           $env
  * @param SpecificationIterator $iterator
  */
 public function __construct(Environment $env, SpecificationIterator $iterator)
 {
     parent::__construct($env);
     $this->iterator = $iterator;
 }
コード例 #4
0
 /**
  * beforeSuite
  *
  * @param SuiteTested $event
  */
 public function beforeSuite(SuiteTested $event)
 {
     $suite = $event->getSuite();
     $this->xml = new \SimpleXmlElement('<testsuites></testsuites>');
     $this->xml->addAttribute('name', $suite->getName());
 }
コード例 #5
0
ファイル: AfterSuiteSetup.php プロジェクト: OverByThere/Behat
 /**
  * Initializes event.
  *
  * @param Environment           $env
  * @param SpecificationIterator $iterator
  * @param Setup                 $setup
  */
 public function __construct(Environment $env, SpecificationIterator $iterator, Setup $setup)
 {
     parent::__construct($env);
     $this->iterator = $iterator;
     $this->setup = $setup;
 }