adjust tests to new phpunit

This commit is contained in:
Robin Appelman 2021-03-02 19:25:27 +01:00
commit a0abe86651
9 changed files with 97 additions and 23 deletions

View file

@ -22,10 +22,8 @@ class CallbackWrapperTest extends WrapperTest {
return \Icewind\Streams\CallbackWrapper::wrap($source, $read, $write, $close, $readDir, $preClose);
}
/**
* @expectedException \BadMethodCallException
*/
public function testWrapInvalidSource() {
$this->expectException(\BadMethodCallException::class);
$this->wrapSource('foo');
}