PopTest\Data\YamlTest::testEncode PHP 메소드

testEncode() 공개 메소드

public testEncode ( )
    public function testEncode()
    {
        $ary = array(array('Name' => 'Test1', 'Num' => 1), array('Name' => 'Test2', 'Num' => 2));
        $y = Yaml::encode($ary);
        $this->assertContains('Name: "Test1"', $y);
    }