Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 public function testSetNodeModulesPath()
 {
     $server = new TestServer();
     $server->setNodeModulesPath('../../');
     $this->assertEquals('../../', $server->getNodeModulesPath());
 }