/** * @expectedException \Ignaszak\Registry\RegistryException */ public function testCantSave() { $dir = MockTest::mockDir('tmpPath'); chmod($dir, 00); Conf::setTmpPath($dir); $stub = $this->getMock('AnyClass'); $this->fileRegistry->set('anyName', $stub); }
/** * Configures Registry tmp path * @link https://github.com/ignaszak/php-registry */ public function loadRegistry() { RegistryConf::setTmpPath($this->dir($this->conf['conf']['tmp']['registry'] ?? '')); }
public function testTmpPath() { Conf::setTmpPath('anyPath'); $this->assertEquals('anyPath', Conf::getTmpPath()); }