/** * */ public function testRemove() { $fileSystem = $this->getFileSystem(); $fileSystem->shouldReceive('exists')->once()->with('/app/config/settings.php')->andReturn(true); $fileSystem->shouldReceive('includeFile')->once()->with('/app/config/settings.php')->andReturn(['greeting' => 'hello']); $config = new Config($fileSystem, '/app/config'); $this->assertEquals('hello', $config->get('settings.greeting')); $config->remove('settings.greeting'); $this->assertNull($config->get('settings.greeting')); }