public function ClientTest::testRestart in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}