root / trunk / ext / php / tests / 003.phpt

Revision 256, 403 bytes (checked in by indeyets, 21 months ago)

fixed test to be independent of exact error message

Line 
1--TEST--
2Check invalid-yaml parsing
3--SKIPIF--
4<?php if (!extension_loaded("syck")) print "skip"; ?>
5--POST--
6--GET--
7--INI--
8--FILE--
9<?php
10$yaml = <<<EOY
11---
12test:
13  hash: {key: value; key2: "value 2"; key3: 3; key4: null}
14  array: [value, "value 2", 3, null]
15EOY;
16
17try {
18        syck_load($yaml);
19        echo "loaded fine";
20} catch (SyckException $e) {
21        echo "Caught exception";
22}
23?>
24--EXPECT--
25Caught exception
Note: See TracBrowser for help on using the browser.