示例#1
0
 public function testManagingTests()
 {
     $test1 = new AlwaysSuccessTest();
     $test2 = new AlwaysSuccessTest();
     $test3 = new AlwaysSuccessTest();
     $this->runner->addTest($test1);
     $this->runner->addTests(array($test2, $test3));
     $this->assertContains($test1, $this->runner->getTests());
     $this->assertContains($test2, $this->runner->getTests());
     $this->assertContains($test3, $this->runner->getTests());
 }