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);
}
/**
* @expectedException \BadMethodCallException
*/
public function testWrapInvalidSource() {
$this->wrapSource('foo');
}
public function testReadCallback() {
$called = false;
$callBack = function () use (&$called) {