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