Extend test cases as bit

This commit is contained in:
Robin Appelman 2014-07-31 01:45:38 +02:00
commit e2e41824dc
2 changed files with 14 additions and 0 deletions

View file

@ -20,6 +20,13 @@ class CallbackWrapper extends Wrapper {
return \Icewind\Streams\CallbackWrapper::wrap($source, $read, $write, $close); return \Icewind\Streams\CallbackWrapper::wrap($source, $read, $write, $close);
} }
/**
* @expectedException \BadMethodCallException
*/
public function testWrapInvalidSource() {
$this->wrapSource('foo');
}
public function testReadCallback() { public function testReadCallback() {
$called = false; $called = false;
$callBack = function () use (&$called) { $callBack = function () use (&$called) {

View file

@ -49,4 +49,11 @@ class NullWrapper extends Wrapper {
throw $e; throw $e;
} }
} }
/**
* @expectedException \BadMethodCallException
*/
public function testWrapInvalidSource() {
$this->wrapSource('foo');
}
} }