Curl\CurlTest::testPostFilePathUpload PHP Method

testPostFilePathUpload() public method

    public function testPostFilePathUpload()
    {
        $file_path = $this->get_png();
        $data = array('key' => 'image', 'image' => '@' . $file_path);
        $this->curl->setOpt(CURLOPT_RETURNTRANSFER, true);
        $this->curl->post(self::TEST_URL . '/post_file_path_upload.php', $data);
        $this->assertEquals(array('request_method' => 'POST', 'key' => 'image', 'mime_content_type' => 'image/png'), json_decode($this->curl->response, true));
        unlink($file_path);
    }