File: //home/imagzxcb/public_html/db127a/yaml_parse_wiki_YtsBasicTests_005.phpt.tar
opt/alt/tests/alt-php82-pecl-yaml_2.2.3-1.el8/tests/yaml_parse_wiki_YtsBasicTests_005.phpt 0000644 00000001124 15204655612 0024671 0 ustar 00 --TEST--
Yaml YtsBasicTests - Simple Mapping
--DESCRIPTION--
You can add a keyed list "also known as a dictionary or
hash" to your document by placing each member of the
list on a new line, with a colon seperating the key
from its value. In YAML, this type of list is called
a mapping.
--CREDITS--
Bryan Davis bd808@bd808.com
# yaml.kwiki.org import/conversion
--SKIPIF--
<?php if(!extension_loaded('yaml')) die('skip yaml n/a'); ?>
--FILE--
<?php
var_dump(yaml_parse('foo: whatever
bar: stuff
'));
?>
--EXPECT--
array(2) {
["foo"]=>
string(8) "whatever"
["bar"]=>
string(5) "stuff"
}