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");
$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();