X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=phpunit%2FMessageTest.php;h=b572f57273adfb0192dc3536ba65c88ae74737cd;hp=63bc226d430ea7e2663531b3f54877e6cf53eb04;hb=a58a67d529ad662546ec8144226042c7e150c163;hpb=a5dac57bfda10f24d6f2fb5047b4c5408a97651d diff --git a/phpunit/MessageTest.php b/phpunit/MessageTest.php index 63bc226..b572f57 100644 --- a/phpunit/MessageTest.php +++ b/phpunit/MessageTest.php @@ -204,7 +204,7 @@ class MessageTest extends PHPUnit_Framework_TestCase function testEmptyUrlWarning() { $m = new http\Message; - $this->setExpectedException("PHPUnit_Framework_Error_Warning"); + $this->setExpectedException("PHPUnit_Framework_Error_Notice"); $m->setRequestUrl("/foo"); $m->setType(http\Message::TYPE_REQUEST); $this->setExpectedException("PHPUnit_Framework_Error_Warning"); @@ -238,7 +238,7 @@ class MessageTest extends PHPUnit_Framework_TestCase $d = new http\Encoding\Stream\Deflate; $s = ""; - $m->toCallback(function ($m, $data) use ($d) { + $m->toCallback(function ($m, $data) use ($d, &$s) { $s.=$d->update($data); }); $s.=$d->finish();