You are here

public function ClientTest::testRestart 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::testRestart()

File

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

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testRestart() {
  $client = new TestClient();
  $client
    ->request('GET', 'http://www.example.com/foo/foobar');
  $client
    ->restart();
  $this
    ->assertTrue($client
    ->getHistory()
    ->isEmpty(), '->restart() clears the history');
  $this
    ->assertEquals(array(), $client
    ->getCookieJar()
    ->all(), '->restart() clears the cookies');
}