Пример #1
0
 public function testSessionIsWrappedInRequest()
 {
     $this->logger->shouldReceive("debug")->once()->with(startsWith("handle request in"));
     $this->plugin = new TestPlugin($this->name, array(TestPlugin::REQUIRES_LOGIN => false));
     $this->plugin->getResponse();
     $request = $this->plugin->getTestRequest();
     assertThat($request->getSession(), is($this->session));
 }