tests for php and html dependencies

This commit is contained in:
Alan Hamlett 2015-09-29 22:00:17 -07:00
parent ffa9e410b4
commit 54fbc8ee22
4 changed files with 243 additions and 2 deletions

View file

@ -61,10 +61,10 @@ class PhpParser(TokenParser):
def _process_literal_string(self, token, content):
if self.state == 'include':
if content != '"':
if content != '"' and content != "'":
content = content.strip()
if u(token) == 'Token.Literal.String.Double':
content = u('"{0}"').format(content)
content = u("'{0}'").format(content)
self.append(content)
self.state = None