Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (24 sloc) 403 Bytes
--TEST--
Check invalid-yaml parsing
--SKIPIF--
<?php if (!extension_loaded("syck")) print "skip"; ?>
--POST--
--GET--
--INI--
--FILE--
<?php
$yaml = <<<EOY
---
test:
hash: {key: value; key2: "value 2"; key3: 3; key4: null}
array: [value, "value 2", 3, null]
EOY;
try {
syck_load($yaml);
echo "loaded fine";
} catch (SyckException $e) {
echo "Caught exception";
}
?>
--EXPECT--
Caught exception