You are here

public function ClientTest::testRequestHistory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\ClientTest::testRequestHistory()

File

vendor/symfony/browser-kit/Tests/ClientTest.php, line 254

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testRequestHistory() {
  $client = new TestClient();
  $client
    ->request('GET', 'http://www.example.com/foo/foobar');
  $client
    ->request('GET', 'bar');
  $this
    ->assertEquals('http://www.example.com/foo/bar', $client
    ->getHistory()
    ->current()
    ->getUri(), '->request() updates the History');
  $this
    ->assertEquals('http://www.example.com/foo/foobar', $client
    ->getHistory()
    ->back()
    ->getUri(), '->request() updates the History');
}