mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 08:33:10 +00:00
Parse PHP files recursively.
This commit is contained in:
parent
2d40c099e3
commit
d011d1524c
5 changed files with 25 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
1
tests/checker/data/file.php
Normal file
1
tests/checker/data/file.php
Normal file
|
|
@ -0,0 +1 @@
|
|||
<a href="anchor.html">Bla</a>
|
||||
11
tests/checker/data/file.php.result
Normal file
11
tests/checker/data/file.php.result
Normal 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
|
||||
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue