lithium\tests\cases\net\http\MessageTest::testReturnMergedJsonWithEmptyBody PHP Метод

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

    public function testReturnMergedJsonWithEmptyBody()
    {
        $this->message->type("json");
        $result = $this->message->body("", array('encode' => true));
        $this->assertIdentical('[""]', $result);
        $result = $this->message->body("", array('encode' => true));
        $this->assertIdentical('["",""]', $result);
    }