SubRequestsTest.php 714 B

1234567891011121314151617181920212223
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.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\Bundle\FrameworkBundle\Tests\Functional;
  11. class SubRequestsTest extends WebTestCase
  12. {
  13. public function testStateAfterSubRequest()
  14. {
  15. $client = $this->createClient(array('test_case' => 'Session', 'root_config' => 'config.yml'));
  16. $client->request('GET', 'https://localhost/subrequest/en');
  17. $this->assertEquals('--fr/json--en/html--fr/json--http://localhost/subrequest/fragment/en', $client->getResponse()->getContent());
  18. }
  19. }