You are here

public function Framework_SuiteTest::testOneTestCase in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/SuiteTest.php \Framework_SuiteTest::testOneTestCase()

File

vendor/phpunit/phpunit/tests/Framework/SuiteTest.php, line 134

Class

Framework_SuiteTest
@since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestSuite

Code

public function testOneTestCase() {
  $suite = new PHPUnit_Framework_TestSuite('OneTestCase');
  $suite
    ->run($this->result);
  $this
    ->assertEquals(0, $this->result
    ->errorCount());
  $this
    ->assertEquals(0, $this->result
    ->failureCount());
  $this
    ->assertEquals(1, count($this->result));
  $this
    ->assertTrue($this->result
    ->wasSuccessful());
}