Version 1
[yaffs-website] / vendor / mikey179 / vfsStream / src / test / php / org / bovigo / vfs / vfsStreamGlobTestCase.php
diff --git a/vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamGlobTestCase.php b/vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamGlobTestCase.php
new file mode 100644 (file)
index 0000000..65c4e11
--- /dev/null
@@ -0,0 +1,28 @@
+<?php
+/**
+ * This file is part of vfsStream.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ *
+ * @package  org\bovigo\vfs
+ */
+namespace org\bovigo\vfs;
+/**
+ * Test for org\bovigo\vfs\vfsStream.
+ *
+ * @since       0.9.0
+ * @group       issue_2
+ */
+class vfsStreamGlobTestCase extends \PHPUnit_Framework_TestCase
+{
+    /**
+     * @test
+     */
+    public function globDoesNotWorkWithVfsStreamUrls()
+    {
+        $root = vfsStream::setup('example');
+        mkdir(vfsStream::url('example/test/'), 0777, true);
+        $this->assertEmpty(glob(vfsStream::url('example'), GLOB_MARK));
+    }
+}