From c3ac67db8a45076f3960392e3625659a6e1b35a6 Mon Sep 17 00:00:00 2001 From: adlawson Date: Sat, 6 Sep 2014 14:25:54 +0100 Subject: [PATCH] Add `is_dir` and `is_file` acceptance tests --- .../StreamWrapper/StatAcceptanceTest.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php diff --git a/test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php b/test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php new file mode 100644 index 0000000..065c0bf --- /dev/null +++ b/test/acceptance/Stream/StreamWrapper/StatAcceptanceTest.php @@ -0,0 +1,23 @@ + [ + 'bar' => 'baz' + ] + ]; + + public function testIsDir() + { + $this->assertTrue(is_dir("$this->scheme://foo")); + } + + public function testIsFile() + { + $this->assertTrue(is_file("$this->scheme://foo/bar")); + } +}