Parse PHP files recursively.

This commit is contained in:
Bastian Kleineidam 2010-12-28 17:11:29 +01:00
parent 2d40c099e3
commit d011d1524c
5 changed files with 25 additions and 0 deletions

View file

@ -1,3 +1,9 @@
6.2 "" (released xx.xx.2011)
Changes:
- checking: Parse PHP files recursively.
6.1 "Christmas Vacation" (released 23.12.2010)
Fixes:

View file

@ -77,6 +77,10 @@ class UrlBase (object):
ContentMimetypes = {
"text/html": "html",
"application/xhtml+xml": "html",
# Include PHP file which helps when checking local .php files.
# It does not harm other URL schemes like HTTP since HTTP servers
# should not send this content type. They send text/html instead.
"application/x-httpd-php": "html",
"text/css": "css",
"application/x-shockwave-flash": "swf",
"application/msword": "word",

View file

@ -0,0 +1 @@
<a href="anchor.html">Bla</a>

View file

@ -0,0 +1,11 @@
url file://%(curdir)s/%(datadir)s/file.php
cache key file://%(curdir)s/%(datadir)s/file.php
real url file://%(curdir)s/%(datadir)s/file.php
name %(datadir)s/file.php
valid
url anchor.html
cache key file://%(curdir)s/%(datadir)s/anchor.html
real url file://%(curdir)s/%(datadir)s/anchor.html
name Bla
valid

View file

@ -55,6 +55,9 @@ class TestFile (LinkCheckTest):
def test_css (self):
self.file_test("file.css")
def test_php (self):
self.file_test("file.php")
def test_urllist (self):
self.file_test("urllist.txt")