public function testNoArgTestCasePasses()
 {
     $result = new PHPUnit2_Framework_TestResult();
     $t = new PHPUnit2_Framework_TestSuite('PHPUnit2_Tests_NoArgTestCaseTest');
     $t->run($result);
     $this->assertEquals(1, $result->runCount());
     $this->assertEquals(0, $result->failureCount());
     $this->assertEquals(0, $result->errorCount());
 }
示例#2
0
 public function testShadowedTests()
 {
     $suite = new PHPUnit2_Framework_TestSuite('PHPUnit2_Tests_OverrideTestCase');
     $suite->run($this->result);
     $this->assertEquals(1, $this->result->runCount());
 }