diff --git a/test/acceptance/Stream/StreamWrapper/RequireAcceptanceTest.php b/test/acceptance/Stream/StreamWrapper/RequireAcceptanceTest.php new file mode 100644 index 0000000..0013c02 --- /dev/null +++ b/test/acceptance/Stream/StreamWrapper/RequireAcceptanceTest.php @@ -0,0 +1,33 @@ + [ + 'bar.php' => 'assertEquals('baz', include "$this->scheme://foo/bar.php"); + } + + public function testRequireFile() + { + $this->assertEquals('baz', require "$this->scheme://foo/bar.php"); + } + + public function testIncludeMissingFile() + { + $this->setExpectedException('PHPUnit_Framework_Error_Warning'); + + include "$this->scheme://bar.php"; + } +}