Esempio n. 1
0
 /**
  * Returns event identifier
  *
  * @return string
  */
 public function getIdentifier()
 {
     if (!$this->identifier) {
         $this->identifier = sha1(microtime(true) . implode('', $this->tags) . State::getTestSuiteName() . State::getTestClassName() . State::getTestMethodName() . $this->state->getPageUrl());
     }
     return $this->identifier;
 }
Esempio n. 2
0
 /**
  * A test suite started
  *
  * @param \PHPUnit_Framework_TestSuite $suite
  * @return void
  */
 public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     if ('default' === State::getTestSuiteName()) {
         State::setTestSuiteName($suite->getName());
     }
 }