Neos\Flow\Tests\Unit\Session\SessionTest::startThrowsAnExceptionIfIncompatibleRequestHandlerIsUsed PHP Method

startThrowsAnExceptionIfIncompatibleRequestHandlerIsUsed() public method

    public function startThrowsAnExceptionIfIncompatibleRequestHandlerIsUsed()
    {
        $mockBootstrap = $this->createMock(Bootstrap::class);
        $mockBootstrap->expects($this->any())->method('getActiveRequestHandler')->will($this->returnValue(new \stdClass()));
        $session = new Session();
        $this->inject($session, 'bootstrap', $mockBootstrap);
        $this->inject($session, 'settings', $this->settings);
        $this->inject($session, 'metaDataCache', $this->createCache('Meta'));
        $this->inject($session, 'storageCache', $this->createCache('Storage'));
        $session->initializeObject();
        $session->start();
    }
SessionTest