public function testGettersAndSetters() { $config = new Configuration(); $this->assertNull($config->getDataDir()); $config->setDataDir('wheee'); $this->assertEquals('wheee', $config->getDataDir()); $this->assertNull($config->getConfigDir()); $config->setConfigDir('wheee'); $this->assertEquals('wheee', $config->getConfigDir()); }
/** * Get PsySh Configuration for the current environment * * @return Configuration */ public function getPsyShConfiguration() { $config = new Configuration(); $config->setHistoryFile($this->path . '/tinkr.history'); $config->setHistorySize(0); $includes = [$_ENV['HOME'] . '/.composer/vendor/autoload.php']; if (file_exists($this->path . '/vendor/autoload.php')) { $includes[] = realpath($this->path . '/vendor/autoload.php'); } $config->setDefaultIncludes($includes); $config->setDataDir(realpath($this->path)); return $config; }