__DIR__, 'mount-point' => '/thumbs' ), self::$DI['app']['phraseanet.thumb-symlinker']); $conf = $mode->getVirtualHostConfiguration(); $this->assertRegExp('#'.__DIR__ . '#', $conf); } /** * @dataProvider provideMappings * @expectedException Alchemy\Phrasea\Exception\InvalidArgumentException */ public function testInvalidMapping($mapping) { new Apache($mapping, self::$DI['app']['phraseanet.thumb-symlinker']); } public function provideMappings() { return array( array(array('Directory' => __DIR__)), array(array('wrong-key' => __DIR__, 'mount-point' => '/')), array(array('directory' => __DIR__, 'wrong-key' => '/')), ); } }