20 $data = array(
'lorem' =>
'ipsum',
'dolor' =>
'sit');
23 $this->assertEquals(
$data, $parsed);
32 Yaml::dump(array(
'lorem' =>
'ipsum',
'dolor' =>
'sit'), 2, 0);
41 Yaml::dump(array(
'lorem' =>
'ipsum',
'dolor' =>
'sit'), 2, -4);
An exception for terminatinating execution or to throw for unit testing.
testZeroIndentationThrowsException()
@expectedException \InvalidArgumentException @expectedExceptionMessage The indentation must be greate...
testNegativeIndentationThrowsException()
@expectedException \InvalidArgumentException @expectedExceptionMessage The indentation must be greate...
Yaml offers convenience methods to load and dump YAML.
static parse($input, $flags=0)
Parses YAML into a PHP value.
static dump($input, $inline=2, $indent=4, $flags=0)
Dumps a PHP value to a YAML string.