public function SessionHandlerProxyTest::testClose in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Proxy\SessionHandlerProxyTest::testClose()
File
- vendor/symfony/ http-foundation/ Tests/ Session/ Storage/ Proxy/ SessionHandlerProxyTest.php, line 74 
Class
- SessionHandlerProxyTest
- Tests for SessionHandlerProxy class.
Namespace
Symfony\Component\HttpFoundation\Tests\Session\Storage\ProxyCode
public function testClose() {
  $this->mock
    ->expects($this
    ->once())
    ->method('close')
    ->will($this
    ->returnValue(true));
  $this
    ->assertFalse($this->proxy
    ->isActive());
  $this->proxy
    ->close();
  $this
    ->assertFalse($this->proxy
    ->isActive());
}