You are here

public function Framework_SuiteTest::testNotExistingTestCase in Zircon Profile 8

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

File

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

Class

Framework_SuiteTest
@since Class available since Release 2.0.0 @covers PHPUnit_Framework_TestSuite

Code

public function testNotExistingTestCase() {
  $suite = new self('notExistingMethod');
  $suite
    ->run($this->result);
  $this
    ->assertEquals(0, $this->result
    ->errorCount());
  $this
    ->assertEquals(1, $this->result
    ->failureCount());
  $this
    ->assertEquals(1, count($this->result));
}