diff options
Diffstat (limited to 'ext/tidy/tests')
-rw-r--r-- | ext/tidy/tests/001.phpt | 24 | ||||
-rw-r--r-- | ext/tidy/tests/002.phpt | 22 | ||||
-rw-r--r-- | ext/tidy/tests/003.phpt | 25 | ||||
-rw-r--r-- | ext/tidy/tests/004.phpt | 21 | ||||
-rw-r--r-- | ext/tidy/tests/005.html | 1 | ||||
-rw-r--r-- | ext/tidy/tests/005.phpt | 23 | ||||
-rw-r--r-- | ext/tidy/tests/006.phpt | 21 | ||||
-rw-r--r-- | ext/tidy/tests/007.phpt | 36 |
8 files changed, 0 insertions, 173 deletions
diff --git a/ext/tidy/tests/001.phpt b/ext/tidy/tests/001.phpt deleted file mode 100644 index 17da6f9874..0000000000 --- a/ext/tidy/tests/001.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Check for tidy presence ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php -echo "tidy extension is available"; -/* - you can add regression tests for your extension here - - the output of your test code has to be equal to the - text in the --EXPECT-- section below for the tests - to pass, differences between the output and the - expected text are interpreted as failure - - see php4/README.TESTING for further information on - writing regression tests -*/ -?> ---EXPECT-- -tidy extension is available diff --git a/ext/tidy/tests/002.phpt b/ext/tidy/tests/002.phpt deleted file mode 100644 index 83456091f7..0000000000 --- a/ext/tidy/tests/002.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -tidy_parse_string() ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php - tidy_parse_string("<HTML></HTML>"); - - echo tidy_get_output(); - -?> ---EXPECT-- -<html> -<head> -<title></title> -</head> -<body> -</body> -</html>
\ No newline at end of file diff --git a/ext/tidy/tests/003.phpt b/ext/tidy/tests/003.phpt deleted file mode 100644 index b008acecdb..0000000000 --- a/ext/tidy/tests/003.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -tidy_clean_repair() ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php - - tidy_parse_string("<HTML></HTML>"); - tidy_clean_repair(); - - echo tidy_get_output(); - -?> ---EXPECT-- -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> -<html> -<head> -<title></title> -</head> -<body> -</body> -</html> diff --git a/ext/tidy/tests/004.phpt b/ext/tidy/tests/004.phpt deleted file mode 100644 index ed60a39b27..0000000000 --- a/ext/tidy/tests/004.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -tidy_diagnose() ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php - tidy_parse_string("<HTML></HTML>"); - tidy_diagnose(); - echo tidy_get_error_buffer(); - -?> ---EXPECT-- - -line 1 column 1 - Warning: missing <!DOCTYPE> declaration -line 1 column 7 - Warning: discarding unexpected </html> -line 1 column 14 - Warning: inserting missing 'title' element -Info: Document content looks like HTML 3.2 -3 warnings, 0 errors were found!
\ No newline at end of file diff --git a/ext/tidy/tests/005.html b/ext/tidy/tests/005.html deleted file mode 100644 index 8c17451f91..0000000000 --- a/ext/tidy/tests/005.html +++ /dev/null @@ -1 +0,0 @@ -<HTML></HTML> diff --git a/ext/tidy/tests/005.phpt b/ext/tidy/tests/005.phpt deleted file mode 100644 index d69a726c8f..0000000000 --- a/ext/tidy/tests/005.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -tidy_parse_file() ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php - - tidy_parse_file("ext/tidy/tests/005.html"); - - echo tidy_get_output(); - -?> ---EXPECT-- -<html> -<head> -<title></title> -</head> -<body> -</body> -</html>
\ No newline at end of file diff --git a/ext/tidy/tests/006.phpt b/ext/tidy/tests/006.phpt deleted file mode 100644 index 7ea28e79c5..0000000000 --- a/ext/tidy/tests/006.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Verbose tidy_get_error_buffer() ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php - - tidy_parse_string("<HTML><asd asdf></HTML>"); - - echo tidy_get_error_buffer(true); - -?> ---EXPECT-- -line 1 column 1 - Warning: missing <!DOCTYPE> declaration -line 1 column 7 - Error: <asd> is not recognized! -line 1 column 7 - Warning: discarding unexpected <asd> -line 1 column 17 - Warning: discarding unexpected </html> -line 1 column 7 - Warning: inserting missing 'title' element
\ No newline at end of file diff --git a/ext/tidy/tests/007.phpt b/ext/tidy/tests/007.phpt deleted file mode 100644 index 9987677df6..0000000000 --- a/ext/tidy/tests/007.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -Verbose tidy_setopt() / tidy_getopt() ---SKIPIF-- -<?php if (!extension_loaded("tidy")) print "skip"; ?> ---POST-- ---GET-- ---INI-- ---FILE-- -<?php - - echo "Current Value of 'tidy-mark': "; - var_dump(tidy_getopt("tidy-mark")); - tidy_setopt($tidy, "tidy-mark", true); - echo "\nNew Value of 'tidy-mark': "; - var_dump(tidy_getopt("tidy-mark")); - echo "Current Value of 'error-file': "; - var_dump(tidy_getopt("error-file")); - tidy_setopt($tidy, "error-file", "foobar"); - echo "\nNew Value of 'error-file': "; - var_dump(tidy_getopt("error-file")); - echo "Current Value of 'tab-size': "; - var_dump(tidy_getopt("tab-size")); - tidy_setopt($tidy, "tab-size", 10); - echo "\nNew Value of 'tab-size': "; - var_dump(tidy_getopt("tab-size")); -?> ---EXPECT-- -Current Value of 'tidy-mark': bool(false) - -New Value of 'tidy-mark': bool(true) -Current Value of 'error-file': string(0) "" - -New Value of 'error-file': string(6) "foobar" -Current Value of 'tab-size': int(8) - -New Value of 'tab-size': int(10)
\ No newline at end of file |