You are here

public function WriteCheckSessionHandlerTest::test in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\WriteCheckSessionHandlerTest::test()

File

vendor/symfony/http-foundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php, line 21

Class

WriteCheckSessionHandlerTest
@author Adrien Brault <adrien.brault@gmail.com>

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler

Code

public function test() {
  $wrappedSessionHandlerMock = $this
    ->getMock('SessionHandlerInterface');
  $writeCheckSessionHandler = new WriteCheckSessionHandler($wrappedSessionHandlerMock);
  $wrappedSessionHandlerMock
    ->expects($this
    ->once())
    ->method('close')
    ->with()
    ->will($this
    ->returnValue(true));
  $this
    ->assertTrue($writeCheckSessionHandler
    ->close());
}