patrickallaert Tue, 01 Sep 2009 13:41:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287942
Log: Merging last tests made in HEAD Changed paths: _U php/php-src/branches/PHP_5_2/ext/tidy/tests/ A + php/php-src/branches/PHP_5_2/ext/tidy/tests/030.phpt (from php/php-src/trunk/ext/tidy/tests/030.phpt:r287941) A + php/php-src/branches/PHP_5_2/ext/tidy/tests/031.phpt (from php/php-src/trunk/ext/tidy/tests/031.phpt:r287941) A + php/php-src/branches/PHP_5_2/ext/tidy/tests/032.phpt (from php/php-src/trunk/ext/tidy/tests/032.phpt:r287941) A + php/php-src/branches/PHP_5_2/ext/tidy/tests/033.phpt (from php/php-src/trunk/ext/tidy/tests/033.phpt:r287941) A + php/php-src/branches/PHP_5_2/ext/tidy/tests/034.phpt (from php/php-src/trunk/ext/tidy/tests/034.phpt:r287941) A + php/php-src/branches/PHP_5_2/ext/tidy/tests/tidy_error1.phpt (from php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt:r287941) _U php/php-src/branches/PHP_5_3/ext/tidy/tests/ A + php/php-src/branches/PHP_5_3/ext/tidy/tests/030.phpt (from php/php-src/trunk/ext/tidy/tests/030.phpt:r287941) A + php/php-src/branches/PHP_5_3/ext/tidy/tests/031.phpt (from php/php-src/trunk/ext/tidy/tests/031.phpt:r287941) A + php/php-src/branches/PHP_5_3/ext/tidy/tests/032.phpt (from php/php-src/trunk/ext/tidy/tests/032.phpt:r287941) A + php/php-src/branches/PHP_5_3/ext/tidy/tests/033.phpt (from php/php-src/trunk/ext/tidy/tests/033.phpt:r287941) A + php/php-src/branches/PHP_5_3/ext/tidy/tests/034.phpt (from php/php-src/trunk/ext/tidy/tests/034.phpt:r287941) A + php/php-src/branches/PHP_5_3/ext/tidy/tests/tidy_error1.phpt (from php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt:r287941)
Property changes on: php/php-src/branches/PHP_5_2/ext/tidy/tests ___________________________________________________________________ Added: svn:mergeinfo + /php/php-src/branches/PHP_5_3/ext/tidy/tests:284120 /php/php-src/trunk/ext/tidy/tests:284726,287798-287941 Copied: php/php-src/branches/PHP_5_2/ext/tidy/tests/030.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/030.phpt) =================================================================== --- php/php-src/branches/PHP_5_2/ext/tidy/tests/030.phpt (rev 0) +++ php/php-src/branches/PHP_5_2/ext/tidy/tests/030.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,29 @@ +--TEST-- +getConfig() method - basic test for getConfig() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<html></html>'; +$config = array( + 'indent' => true, // AutoBool + 'indent-attributes' => true, // Boolean + 'indent-spaces' => 3, // Integer + 'language' => 'de'); // String +$tidy = new tidy(); +$tidy->parseString($buffer, $config); +$c = $tidy->getConfig(); +var_dump($c['indent']); +var_dump($c['indent-attributes']); +var_dump($c['indent-spaces']); +var_dump($c['language']); +?> +--EXPECTF-- +int(1) +bool(true) +int(3) +%s(2) "de" Copied: php/php-src/branches/PHP_5_2/ext/tidy/tests/031.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/031.phpt) =================================================================== --- php/php-src/branches/PHP_5_2/ext/tidy/tests/031.phpt (rev 0) +++ php/php-src/branches/PHP_5_2/ext/tidy/tests/031.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,18 @@ +--TEST-- +tidy_config_count() function - basic test for tidy_config_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<html></html>'; +$config = array('doctype' => 'php'); + +$tidy = tidy_parse_string($buffer, $config); +var_dump(tidy_config_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_2/ext/tidy/tests/032.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/032.phpt) =================================================================== --- php/php-src/branches/PHP_5_2/ext/tidy/tests/032.phpt (rev 0) +++ php/php-src/branches/PHP_5_2/ext/tidy/tests/032.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,17 @@ +--TEST-- +tidy_error_count() function - basic test for tidy_error_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; + +$tidy = tidy_parse_string($buffer); +var_dump(tidy_error_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_2/ext/tidy/tests/033.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/033.phpt) =================================================================== --- php/php-src/branches/PHP_5_2/ext/tidy/tests/033.phpt (rev 0) +++ php/php-src/branches/PHP_5_2/ext/tidy/tests/033.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,17 @@ +--TEST-- +tidy_warning_count() function - basic test for tidy_warning_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; + +$tidy = tidy_parse_string($buffer); +var_dump(tidy_warning_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_2/ext/tidy/tests/034.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/034.phpt) =================================================================== --- php/php-src/branches/PHP_5_2/ext/tidy/tests/034.phpt (rev 0) +++ php/php-src/branches/PHP_5_2/ext/tidy/tests/034.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,20 @@ +--TEST-- +tidy_access_count() function - basic test for tidy_access_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; +$config = array( + 'accessibility-check' => 1); + +$tidy = tidy_parse_string($buffer, $config); +$tidy->diagnose(); +var_dump(tidy_access_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_2/ext/tidy/tests/tidy_error1.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt) =================================================================== --- php/php-src/branches/PHP_5_2/ext/tidy/tests/tidy_error1.phpt (rev 0) +++ php/php-src/branches/PHP_5_2/ext/tidy/tests/tidy_error1.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,19 @@ +--TEST-- +Notice triggered by invalid configuration options +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<html></html>'; +$config = array('bogus' => 'willnotwork'); + +$tidy = new tidy(); +var_dump($tidy->parseString($buffer, $config)); +?> +--EXPECTF-- +Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d +bool(true) Property changes on: php/php-src/branches/PHP_5_3/ext/tidy/tests ___________________________________________________________________ Added: svn:mergeinfo + /php/php-src/trunk/ext/tidy/tests:284726,287798-287941 Copied: php/php-src/branches/PHP_5_3/ext/tidy/tests/030.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/030.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/tidy/tests/030.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/tidy/tests/030.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,29 @@ +--TEST-- +getConfig() method - basic test for getConfig() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<html></html>'; +$config = array( + 'indent' => true, // AutoBool + 'indent-attributes' => true, // Boolean + 'indent-spaces' => 3, // Integer + 'language' => 'de'); // String +$tidy = new tidy(); +$tidy->parseString($buffer, $config); +$c = $tidy->getConfig(); +var_dump($c['indent']); +var_dump($c['indent-attributes']); +var_dump($c['indent-spaces']); +var_dump($c['language']); +?> +--EXPECTF-- +int(1) +bool(true) +int(3) +%s(2) "de" Copied: php/php-src/branches/PHP_5_3/ext/tidy/tests/031.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/031.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/tidy/tests/031.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/tidy/tests/031.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,18 @@ +--TEST-- +tidy_config_count() function - basic test for tidy_config_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<html></html>'; +$config = array('doctype' => 'php'); + +$tidy = tidy_parse_string($buffer, $config); +var_dump(tidy_config_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_3/ext/tidy/tests/032.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/032.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/tidy/tests/032.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/tidy/tests/032.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,17 @@ +--TEST-- +tidy_error_count() function - basic test for tidy_error_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; + +$tidy = tidy_parse_string($buffer); +var_dump(tidy_error_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_3/ext/tidy/tests/033.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/033.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/tidy/tests/033.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/tidy/tests/033.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,17 @@ +--TEST-- +tidy_warning_count() function - basic test for tidy_warning_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; + +$tidy = tidy_parse_string($buffer); +var_dump(tidy_warning_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_3/ext/tidy/tests/034.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/034.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/tidy/tests/034.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/tidy/tests/034.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,20 @@ +--TEST-- +tidy_access_count() function - basic test for tidy_access_count() +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<img src="file.png" /><php>'; +$config = array( + 'accessibility-check' => 1); + +$tidy = tidy_parse_string($buffer, $config); +$tidy->diagnose(); +var_dump(tidy_access_count($tidy)); +?> +--EXPECTF-- +int(%d) Copied: php/php-src/branches/PHP_5_3/ext/tidy/tests/tidy_error1.phpt (from rev 287941, php/php-src/trunk/ext/tidy/tests/tidy_error1.phpt) =================================================================== --- php/php-src/branches/PHP_5_3/ext/tidy/tests/tidy_error1.phpt (rev 0) +++ php/php-src/branches/PHP_5_3/ext/tidy/tests/tidy_error1.phpt 2009-09-01 13:41:18 UTC (rev 287942) @@ -0,0 +1,19 @@ +--TEST-- +Notice triggered by invalid configuration options +--CREDITS-- +Christian Wenz <w...@php.net> +--SKIPIF-- +<?php + if (!extension_loaded('tidy')) die ('skip tidy not present'); +?> +--FILE-- +<?php +$buffer = '<html></html>'; +$config = array('bogus' => 'willnotwork'); + +$tidy = new tidy(); +var_dump($tidy->parseString($buffer, $config)); +?> +--EXPECTF-- +Notice: tidy::parseString(): Unknown Tidy Configuration Option 'bogus' in %s on line %d +bool(true)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php