/** * @expectedException \RuntimeException * @expectedExceptionMessage mako\config\Config::load(): The [ settings ] config file does not exist. */ public function testSetWithNonExistingFile() { $fileSystem = $this->getFileSystem(); $fileSystem->shouldReceive('exists')->once()->with('/app/config/settings.php')->andReturn(false); $config = new Config($fileSystem, '/app/config'); $config->set('settings.greeting', 'hello'); }