Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Framework / TestImplementorTest.php
1 <?php
2 /*
3  * This file is part of PHPUnit.
4  *
5  * (c) Sebastian Bergmann <sebastian@phpunit.de>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * @since      Class available since Release 2.0.0
13  */
14 class Framework_TestImplementorTest extends PHPUnit_Framework_TestCase
15 {
16     /**
17      * @covers PHPUnit_Framework_TestCase
18      */
19     public function testSuccessfulRun()
20     {
21         $result = new PHPUnit_Framework_TestResult;
22
23         $test = new DoubleTestCase(new Success);
24         $test->run($result);
25
26         $this->assertEquals(count($test), count($result));
27         $this->assertEquals(0, $result->errorCount());
28         $this->assertEquals(0, $result->failureCount());
29     }
30 }