assertTrue($server->getRequest() instanceof \Symfony\Component\HttpFoundation\Request); $server2 = new StubAbstractServer(); $server2->setRequest((new \Symfony\Component\HttpFoundation\Request)); $this->assertTrue($server2->getRequest() instanceof \Symfony\Component\HttpFoundation\Request); } function testGetStorageException() { $this->setExpectedException('League\OAuth2\Server\Exception\ServerException'); $server = new StubAbstractServer(); $server->getStorage('foobar'); } }