/**
  * @param Properties $properties
  */
 private function getTotalTestCount(Properties $properties)
 {
     $count = 0;
     foreach ($properties->getTestSets() as $sessionName => $testSets) {
         foreach ($testSets as $testSet) {
             $count += $testSet->getTestCount();
         }
     }
     return $count;
 }
Exemple #2
0
 /**
  * This function runs all test sets defined in the properties file.
  *
  * @notify LiveTest.Run.PostRun
  * @notify LiveTest.Run.PreRun
  */
 public function run()
 {
     $this->eventDispatcher->simpleNotify('LiveTest.Run.PreRun', array('properties' => $this->properties));
     // @todo move timer to runner.php
     $timer = new Timer();
     foreach ($this->properties->getTestSets() as $sessionName => $testSets) {
         foreach ($testSets as $testSet) {
             $this->runTestSet($testSet, $sessionName);
         }
     }
     $information = new Information($timer->stop(), $this->properties->getDefaultDomain());
     $this->eventDispatcher->simpleNotify('LiveTest.Run.PostRun', array('information' => $information));
 }
 public function testGetTestSets()
 {
     $this->assertEquals(array(), $this->object->getTestSets());
 }