/** * @test */ public function validIniFileReturnsInstance() { $root = vfsStream::setup('config'); vfsStream::newFile('test.ini')->at($root)->withContent("[foo]\nbar=baz"); $properties = Properties::fromFile(vfsStream::url('config/test.ini')); assert($properties->section('foo'), equals(['bar' => 'baz'])); }
/** * binds properties from given properties file * * @param string $propertiesFile file where properties are stored * @param string $environment name of current environment * @return \stubbles\values\Properties * @since 4.0.0 */ public function bindPropertiesFromFile(string $propertiesFile, string $environment) : Properties { return $this->bindProperties(Properties::fromFile($propertiesFile), $environment); }