This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Components/RequestHandler/Test/TesterTest.php
2010-04-21 12:05:34 +02:00

34 lines
759 B
PHP

<?php
/*
* This file is part of the symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Tests\Components\RequestHandler\Test;
use Symfony\Components\RequestHandler\Test\Tester;
class TestTester extends Tester
{
public function getTestCase()
{
return $this->test;
}
}
class TesterTest extends \PHPUnit_Framework_TestCase
{
public function testSetTestCase()
{
$tester = new TestTester();
$tester->setTestCase($this);
$this->assertSame($this, $tester->getTestCase(), '->setTestCase() sets the test case object associated with the tester');
}
}