public function WriteCheckSessionHandlerTest::testWrite in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-foundation/Tests/Session/Storage/Handler/WriteCheckSessionHandlerTest.php \Symfony\Component\HttpFoundation\Tests\Session\Storage\Handler\WriteCheckSessionHandlerTest::testWrite()
File
- vendor/
symfony/ http-foundation/ Tests/ Session/ Storage/ Handler/ WriteCheckSessionHandlerTest.php, line 36
Class
- WriteCheckSessionHandlerTest
- @author Adrien Brault <adrien.brault@gmail.com>
Namespace
Symfony\Component\HttpFoundation\Tests\Session\Storage\HandlerCode
public function testWrite() {
$wrappedSessionHandlerMock = $this
->getMock('SessionHandlerInterface');
$writeCheckSessionHandler = new WriteCheckSessionHandler($wrappedSessionHandlerMock);
$wrappedSessionHandlerMock
->expects($this
->once())
->method('write')
->with('foo', 'bar')
->will($this
->returnValue(true));
$this
->assertTrue($writeCheckSessionHandler
->write('foo', 'bar'));
}