You are here

public function Framework_TestImplementorTest::testSuccessfulRun in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/TestImplementorTest.php \Framework_TestImplementorTest::testSuccessfulRun()

@covers PHPUnit_Framework_TestCase

File

vendor/phpunit/phpunit/tests/Framework/TestImplementorTest.php, line 19

Class

Framework_TestImplementorTest
@since Class available since Release 2.0.0

Code

public function testSuccessfulRun() {
  $result = new PHPUnit_Framework_TestResult();
  $test = new DoubleTestCase(new Success());
  $test
    ->run($result);
  $this
    ->assertEquals(count($test), count($result));
  $this
    ->assertEquals(0, $result
    ->errorCount());
  $this
    ->assertEquals(0, $result
    ->failureCount());
}