/** * 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; }
/** * beforeSuite * * @param SuiteTested $event */ public function beforeSuite(SuiteTested $event) { $suite = $event->getSuite(); $testsuite = $this->xml->addChild('testsuite'); $testsuite->addAttribute('name', $suite->getName()); }
/** * Initializes event. * * @param Environment $env * @param SpecificationIterator $iterator */ public function __construct(Environment $env, SpecificationIterator $iterator) { parent::__construct($env); $this->iterator = $iterator; }
/** * beforeSuite * * @param SuiteTested $event */ public function beforeSuite(SuiteTested $event) { $suite = $event->getSuite(); $this->xml = new \SimpleXmlElement('<testsuites></testsuites>'); $this->xml->addAttribute('name', $suite->getName()); }
/** * 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; }