File modules/util/test/YAMLTest.class.php
Last commit: Thu Sep 10 23:46:04 2020 +0200 Jan Dankert New: Simple Unit-Testing.
1 <?php 2 3 namespace util\test; 4 5 use util\YAML; 6 7 class YAMLTest extends TestCase { 8 9 public function testYAMLParser() 10 { 11 12 $yaml = <<<EOF 13 test : 'blabla' 14 a: '\\n\i\x\\nnux' 15 EOF; 16 17 $arr = YAML::parse($yaml); 18 $this->assertEquals('blabla', $arr['test']); 19 } 20 } 21 22 23
Downloadmodules/util/test/YAMLTest.class.php
History Thu, 10 Sep 2020 23:46:04 +0200 Jan Dankert New: Simple Unit-Testing.