public function testCanAddAnImageFromALocalPath() { $this->setMockResponse($this->client, 'image_created'); $response = $this->client->addImage(__DIR__ . '/_files/image.png'); $this->assertSame('929db9c5fc3099f7576f5655207eba47', $response['imageIdentifier']); $this->assertSame(665, $response['width']); $this->assertSame(463, $response['height']); $this->assertSame('png', $response['extension']); $this->assertSame(201, $response['status']); $requests = $this->getMockedRequests(); $request = $requests[0]; $this->assertTrue($request->hasHeader('X-Imbo-Authenticate-Signature')); $this->assertTrue($request->hasHeader('X-Imbo-Authenticate-Timestamp')); }