예제 #1
0
파일: ServerTest.php 프로젝트: tillk/vufind
    public function testSetNodeModulesPath()
    {
        $server = new TestServer();
        $server->setNodeModulesPath('../../');
        $this->assertEquals('../../', $server->getNodeModulesPath());
        $expected = <<<JS
var zombie = require('../../zombie')
  , host   = '127.0.0.1'
  , port   = 8124;
JS;
        $this->assertEquals($expected, $server->serverScript);
    }
예제 #2
0
 public function testSetNodeModulesPath()
 {
     $server = new TestServer();
     $server->setNodeModulesPath('../../');
     $this->assertEquals('../../', $server->getNodeModulesPath());
 }