TesterTest.php 759 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Tests\Components\RequestHandler\Test;
  11. use Symfony\Components\RequestHandler\Test\Tester;
  12. class TestTester extends Tester
  13. {
  14. public function getTestCase()
  15. {
  16. return $this->test;
  17. }
  18. }
  19. class TesterTest extends \PHPUnit_Framework_TestCase
  20. {
  21. public function testSetTestCase()
  22. {
  23. $tester = new TestTester();
  24. $tester->setTestCase($this);
  25. $this->assertSame($this, $tester->getTestCase(), '->setTestCase() sets the test case object associated with the tester');
  26. }
  27. }