/** * @expectedException \Exception * @expectedExceptionMessage Boundary not found */ public function testMultipartWitoutBoundary() { $response = "Content-Type: multipart/mixed\n" . "\n" . "--Boundary_1245_945802293_1394135045248\n" . "Content-Type: application/json\r\n" . "\r\n" . "{\"response\" : [ {\"status\" : 200} ]}\n" . "--Boundary_1245_945802293_1394135045248\n" . "Content-Type: application/json\n" . "\n" . "{\"foo\" : \"bar\"}\n" . "--Boundary_1245_945802293_1394135045248--\n"; $r3 = new ApiResponse(null, $response, 207); $r3->multipart(); }