public function Framework_SuiteTest::testOneTestCase

File

drupal/core/vendor/phpunit/phpunit/Tests/Framework/SuiteTest.php, line 161

Class

Framework_SuiteTest
@package PHPUnit @author Sebastian Bergmann <sebastian@phpunit.de> @copyright 2001-2013 Sebastian Bergmann <sebastian@phpunit.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @link …

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());
}