Updated from some -dev modules to alpha, beta or full releases
[yaffs-website] / vendor / psy / psysh / test / CodeCleaner / FunctionReturnInWriteContextPassTest.php
index 419369b496334921cc65a3f93b6c41443b07dd3a..fb323ab5610b61cc2f0d4bdb0780c40580229673 100644 (file)
@@ -72,4 +72,20 @@ class FunctionReturnInWriteContextPassTest extends CodeCleanerTestCase
 
         $this->traverser->traverse($this->parse('empty(strtolower("A"))'));
     }
+
+    /**
+     * @dataProvider validStatements
+     */
+    public function testValidStatements($code)
+    {
+        $this->parseAndTraverse($code);
+        $this->assertTrue(true);
+    }
+
+    public function validStatements()
+    {
+        return [
+            ['isset($foo)'],
+        ];
+    }
 }