JamesMoss\Flywheel\Formatter\JSONTest::testDecoding PHP Метод

testDecoding() публичный Метод

public testDecoding ( )
    public function testDecoding()
    {
        $formatter = new JSON();
        $data = (object) array('name' => 'Joe', 'age' => 21, 'employed' => true);
        $raw = '{"name":"Joe","age":21,"employed":true}';
        $this->assertEquals($data, $formatter->decode($raw));
    }