Doctrine\Tests\ODM\CouchDB\AttachmentTest::testToArray PHP Метод

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

public testToArray ( )
    public function testToArray()
    {
        $text = "Hello i am a string";
        $attachment = Attachment::createFromBinaryData($text, "text/plain");
        $this->assertEquals(array("data" => "SGVsbG8gaSBhbSBhIHN0cmluZw==", "content_type" => "text/plain"), $attachment->toArray());
    }