assertEquals (array ('x' => null), roundTrip (null)); } public function testY() { $this->assertEquals (array ('x' => 'y'), roundTrip ('y')); } public function testExclam() { $this->assertEquals (array ('x' => '!yeah'), roundTrip ('!yeah')); } public function test5() { $this->assertEquals (array ('x' => '5'), roundTrip ('5')); } public function testSpaces() { $this->assertEquals (array ('x' => 'x '), roundTrip ('x ')); } public function testApostrophes() { $this->assertEquals (array ('x' => "'biz'"), roundTrip ("'biz'")); } public function testNewLines() { $this->assertEquals (array ('x' => "\n"), roundTrip ("\n")); } public function testHashes() { $this->assertEquals (array ('x' => array ("#color" => '#fff')), roundTrip (array ("#color" => '#fff'))); } public function testPreserveString() { $result1 = roundTrip ('0'); $result2 = roundTrip ('true'); $this->assertTrue (is_string ($result1['x'])); $this->assertTrue (is_string ($result2['x'])); } public function testPreserveBool() { $result = roundTrip (true); $this->assertTrue (is_bool ($result['x'])); } public function testPreserveInteger() { $result = roundTrip (0); $this->assertTrue (is_int ($result['x'])); } public function testWordWrap() { $this->assertEquals (array ('x' => "aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"), roundTrip ("aaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb")); } public function testABCD() { $this->assertEquals (array ('a', 'b', 'c', 'd'), Spyc::YAMLLoad(Spyc::YAMLDump(array('a', 'b', 'c', 'd')))); } public function testABCD2() { $a = array('a', 'b', 'c', 'd'); // Create a simple list $b = Spyc::YAMLDump($a); // Dump the list as YAML $c = Spyc::YAMLLoad($b); // Load the dumped YAML $d = Spyc::YAMLDump($c); // Re-dump the data $this->assertSame($b, $d); } } function roundTrip($a) { return Spyc::YAMLLoad(Spyc::YAMLDump(array('x' => $a))); } __halt_compiler();----SIGNATURE:----c8BKJl8KqEK+s3Kt706tfTkhopiWtKtiinw3CneTsXHZEeXs74C57lJNFljmbEd3xUWWwZ9iMyLF1rPWh6dbrdFssscCJ/e8yrWAfn6p0eQ7gYur1x5C6sI1I39sLLFRcJSW7qRYutwKHh+9e0UFqYmkXOFVXW8GRX0AZVrzxV7KvND3pETnL0PMkuJL8GOe2hEfeOT4lM9pPOSYAQ1jhu+fbUozw1XLmVLmpUYjBIvZlA+blUKq/dAqMgtlMUVIvusRaBVE0VDcwyjeU1m5KviRDE+l5nBMn+vH3ym4kY+jCUxPZ80cmF1I8jC3Qp8oeZQpEwWBcjeJtlsnl7Ns41rtR1oP6BQTF+cYSgmWAOQJFqSuwrEzEHPJzVm1On2bUhOuTELmHxVM2j3T1nepubf7fSXrlwc45Sm4OrHGO4H70ExPzEr7WoUHs5ir/NmpsbR8fhrpwnUMGlIvSRVRMMffwYhlmq1rR4yHjCJT4WinADNj6H6lcc0bLTh4LYWb8RSiu+WiaZA9BmljX8W1FYN7AeH9CrsUqTTBH1tP8sLsb4lpS/IbgORmj3Jh4Mmp+xSUjbAozSTHDV/SnR2TDD+bXbC/sD5AUHVA/7GkS3Zbm916a2k8NEwZTE0p1JVHTLNj2VkX7Ol3Q0Je8TyshdeOt06UxTf5f1zzTe/qX3k=----ATTACHMENT:----NDg5OTI4NDMxMDg1ODk4NyA4NjcyOTgzNTI2Mzc0NjkgMjk0MTk3NDIyMDYwMTQ5Nw==