Source

qadpid / tests / test_parser.py

Diff from to

File tests/test_parser.py

         """ Test for presence of one require_once statement """
         self.assertEquals( self.parser.parse('require_once "foo.php"'), [ ("require", "foo.php")] )
 
+    def test_parse_include_brackets( self ):
+        """ Test for presence of include with brackets """
+        self.assertEquals( self.parser.parse("include_once('includes/foo.php');"), [ ("include", "includes/foo.php") ] )
+
+    def test_parse_require_brackets( self ):
+        """ Test for presence of require with brackets """
+        self.assertEquals( self.parser.parse("require_once('includes/foo.php');"), [ ("require", "includes/foo.php") ] )
+
     def test_parse_multiple_includes( self ):
         """ Test for presence of multiple include statements """
         php_code = '''