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
11class Framework_TestImplementorTest extends PHPUnit_Framework_TestCase
12{
13    public function testSuccessfulRun()
14    {
15        $result = new PHPUnit_Framework_TestResult;
16
17        $test = new DoubleTestCase(new Success);
18        $test->run($result);
19
20        $this->assertCount(count($test), $result);
21        $this->assertEquals(0, $result->errorCount());
22        $this->assertEquals(0, $result->failureCount());
23    }
24}
25