public function testFactoryWithXsendFileDisabled() { $logger = $this->getMock('Psr\\Log\\LoggerInterface'); $factory = new XSendFileFactory($logger, false, 'nginx', $this->getNginxMapping()); $this->assertInstanceOf('Alchemy\\Phrasea\\Http\\XSendFile\\NullMode', $factory->getMode()); $this->assertFalse($factory->isXSendFileModeEnabled()); }