projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix bug #63947 $_POST set as NULL for GET when Content-Type is set as application...
[m6w6/ext-http]
/
phpunit
/
MessageBodyTest.php
diff --git
a/phpunit/MessageBodyTest.php
b/phpunit/MessageBodyTest.php
index cc0f421efd9f92c31d2d9d7cd76999773b563a20..1764ef6027b89128915420ce2667676fbb27ab3c 100644
(file)
--- a/
phpunit/MessageBodyTest.php
+++ b/
phpunit/MessageBodyTest.php
@@
-124,4
+124,11
@@
class MessageBodyTest extends PHPUnit_Framework_TestCase {
function testClone() {
$this->assertEquals((string) $this->file, (string) clone $this->file);
}
function testClone() {
$this->assertEquals((string) $this->file, (string) clone $this->file);
}
+
+ function testGetResource() {
+ $stream = $this->file->getResource();
+ $this->assertTrue(is_resource($stream));
+ $stat = fstat($stream);
+ $this->assertEquals(filesize(__FILE__), $stat["size"]);
+ }
}
}