3 * This file is part of PHPUnit.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * @since Class available since Release 4.0.0
14 class Framework_BaseTestListenerTest extends PHPUnit_Framework_TestCase
17 * @var PHPUnit_Framework_TestResult
22 * @covers PHPUnit_Framework_TestResult
24 public function testEndEventsAreCounted()
26 $this->result = new PHPUnit_Framework_TestResult;
27 $listener = new BaseTestListenerSample();
28 $this->result->addListener($listener);
30 $test->run($this->result);
32 $this->assertEquals(1, $listener->endCount);