Permalink
Browse files

Fix test case broken by 2f00092

  • Loading branch information...
1 parent cb6e6c1 commit 922ce02ae0317d314fc192198d7791766bff82fd @felixge felixge committed Jun 1, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 test/simple/CurlRequestTest.php
View
6 test/simple/CurlRequestTest.php
@@ -64,10 +64,12 @@ public function testGetCurlOptions() {
$options[CURLOPT_URL]);
$this->assertArrayNotHasKey(CURLOPT_POSTFIELDS, $options);
+ $fixture = dirname(dirname(__FILE__)) . '/fixture/image-resize-robot.jpg';
+
// test post files
$this->request->method = 'POST';
$this->request->fields = array('super' => 'cool');
- $this->request->files = array('foo' => '/my/file.dat');
+ $this->request->files = array('foo' => $fixture);
$options = $this->request->getCurlOptions();
$this->assertEquals(
array_merge(
@@ -78,7 +80,7 @@ public function testGetCurlOptions() {
);
// test file numbering
- $this->request->files = array('/my/file.dat');
+ $this->request->files = array($fixture);
$options = $this->request->getCurlOptions();
$this->assertEquals(
array_merge(

0 comments on commit 922ce02

Please sign in to comment.