public function testIncludes() { $shell = new Shell(); $this->assertEmpty($shell->getIncludes()); $shell->setIncludes(array('foo', 'bar', 'baz')); $this->assertEquals(array('foo', 'bar', 'baz'), $shell->getIncludes()); }
public function testIncludesConfig() { $config = $this->getConfig(array('defaultIncludes' => array('/file.php'), 'configFile' => __DIR__ . '/../../fixtures/empty.php')); $shell = new Shell($config); $includes = $shell->getIncludes(); $this->assertEquals('/file.php', $includes[0]); }