PATH:
opt
/
alt
/
tests
/
alt-php83-pecl-yaml_2.2.3-1.el8
/
tests
--TEST-- yaml_emit - scalars --SKIPIF-- <?php if(!extension_loaded('yaml')) die('skip yaml n/a'); ?> --INI-- serialize_precision=-1 --FILE-- <?php var_dump(yaml_emit(null)); var_dump(yaml_emit(true)); var_dump(yaml_emit(false)); var_dump(yaml_emit(10)); var_dump(yaml_emit(-10)); var_dump(yaml_emit(123.456)); var_dump(yaml_emit(-123.456)); var_dump(yaml_emit("yes")); var_dump(yaml_emit("no")); var_dump(yaml_emit("~")); var_dump(yaml_emit("-")); var_dump(yaml_emit("'")); var_dump(yaml_emit('"')); var_dump(yaml_emit("I\\xF1t\\xEBrn\\xE2ti\\xF4n\\xE0liz\\xE6ti\\xF8n")); var_dump(yaml_emit("# looks like a comment")); var_dump(yaml_emit("@looks_like_a_ref")); var_dump(yaml_emit("&looks_like_a_alias")); var_dump(yaml_emit("!!str")); var_dump(yaml_emit("%TAG ! tag:looks.like.one,999:")); var_dump(yaml_emit("!something")); var_dump(yaml_emit("Hello world!")); var_dump(yaml_emit("This is a string with\nan embedded newline.")); $str = <<<EOD This string was made with a here doc. It contains embedded newlines. It also has some embedded tabs. Here are some symbols: `~!@#$%^&*()_-+={}[]|\:";'<>,.?/ These are extended characters: Iñtërnâtiônàlizætiøn EOD; var_dump(yaml_emit($str)); ?> --EXPECT-- string(10) "--- ~ ... " string(13) "--- true ... " string(14) "--- false ... " string(11) "--- 10 ... " string(12) "--- -10 ... " string(16) "--- 123.456 ... " string(17) "--- -123.456 ... " string(14) "--- "yes" ... " string(13) "--- "no" ... " string(12) "--- "~" ... " string(12) "--- '-' ... " string(13) "--- '''' ... " string(12) "--- '"' ... " string(50) "--- I\xF1t\xEBrn\xE2ti\xF4n\xE0liz\xE6ti\xF8n ... " string(33) "--- '# looks like a comment' ... " string(28) "--- '@looks_like_a_ref' ... " string(30) "--- '&looks_like_a_alias' ... " string(16) "--- '!!str' ... " string(41) "--- '%TAG ! tag:looks.like.one,999:' ... " string(21) "--- '!something' ... " string(21) "--- Hello world! ... " string(58) "--- |- This is a string with an embedded newline. ... " string(267) "--- "This string was made with a here doc.\n\nIt contains embedded newlines.\n \t\tIt also has some embedded tabs.\n\nHere are some symbols:\n`~!@#$%^&*()_-+={}[]|\\:\";'<>,.?/\n\nThese are extended characters: I\xF1t\xEBrn\xE2ti\xF4n\xE0liz\xE6ti\xF8n\n\n" ... "
[-] yaml_parse_wiki_YtsStrangeKeys_002.phpt
[edit]
[-] yaml_parse_006.phpt
[edit]
[-] yaml_parse_007.phpt
[edit]
[-] yaml_parse_wiki_YtsMapInSeq_002.phpt
[edit]
[-] bug_69617.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_009.phpt
[edit]
[-] bug_77720.phpt
[edit]
[-] yaml_parse_spec_set.phpt
[edit]
[-] bug_75029.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_004.phpt
[edit]
[-] yaml_emit_002.phpt
[edit]
[-] bug_64694.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_006.phpt
[edit]
[-] yaml_001.phpt
[edit]
[-] bug_64019.phpt
[edit]
[-] yaml_parse_wiki_YtsMapInSeq_001.phpt
[edit]
[-] yaml_emit_009.phpt
[edit]
[-] yaml_emit_004.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_001.phpt
[edit]
[-] yaml_parse_wiki_YtsBlockMapping_003.phpt
[edit]
[-] yaml_emit_003.phpt
[edit]
[-] bug_74799.phpt
[edit]
[-] yaml_emit_file_basic.phpt
[edit]
[-] yaml_parse_004.phpt
[edit]
[-] bug_80324.phpt
[edit]
[-] yaml_parse_wiki_YtsMapInSeq_003.phpt
[edit]
[-] bug_79866.phpt
[edit]
[-] bug_76309.phpt
[edit]
[-] bug_21995.phpt
[edit]
[-] yaml_parse_url_001.phpt
[edit]
[-] yaml_parse_wiki_YtsBlockMapping_004.phpt
[edit]
[-] yaml_parse_spec_merge.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_002.phpt
[edit]
[-] bug_61770.phpt
[edit]
[-] yaml_parse_008.phpt
[edit]
[-] bug_60628.phpt
[edit]
[-] yaml_parse_file_001.phpt
[edit]
[-] yaml_parse_spec_timestamp.phpt
[edit]
[-] yaml_parse_wiki_YtsBlockMapping_001.phpt
[edit]
[-] yaml_002.phpt
[edit]
[-] yaml_parse_spec_seq.phpt
[edit]
[+]
..
[-] yaml_parse_spec_map.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_007.phpt
[edit]
[-] yaml_parse_002.phpt
[edit]
[-] bug_72204.phpt
[edit]
[-] bug_69465.phpt
[edit]
[-] yaml_emit_008.phpt
[edit]
[-] bug_59860.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_008.phpt
[edit]
[-] yaml_parse_spec_pairs.phpt
[edit]
[-] bug_parsing_alias.phpt
[edit]
[-] yaml_parse_file_001.yaml
[edit]
[-] yaml_parse_spec_int.phpt
[edit]
[-] yaml_emit_006.phpt
[edit]
[-] yaml_parse_wiki_YtsStrangeKeys_001.phpt
[edit]
[-] yaml_parse_005.phpt
[edit]
[-] yaml_parse_wiki_YtsBlockMapping_002.phpt
[edit]
[-] bug_79567.phpt
[edit]
[-] bug_79494.phpt
[edit]
[-] yaml_parse_spec_omap.phpt
[edit]
[-] bug_72540.phpt
[edit]
[-] bug_61923.phpt
[edit]
[-] yaml_parse_spec_float.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_005.phpt
[edit]
[-] yaml_parse_file_002.phpt
[edit]
[-] bug_74799.yaml
[edit]
[-] yaml_emit_001.phpt
[edit]
[-] yaml_parse_001.phpt
[edit]
[-] yaml_emit_007.phpt
[edit]
[-] yaml_parse_wiki_YtsBasicTests_003.phpt
[edit]
[-] yaml_parse_003.phpt
[edit]
[-] yaml_parse_spec_bool.phpt
[edit]
[-] yaml_parse_spec_binary.phpt
[edit]
[-] yaml_parse_spec_str.phpt
[edit]
[-] yaml_emit_005.phpt
[edit]
[-] yaml_parse_spec_null.phpt
[edit]
[-] bug_69616.phpt
[edit]