svn: /php/php-src/trunk/ext/tidy/tests/ 032.phpt

From: Date: Tue, 01 Sep 2009 13:06:16 +0000
Subject: svn: /php/php-src/trunk/ext/tidy/tests/ 032.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-60280@lists.php.net to get a copy of this message
patrickallaert Tue, 01 Sep 2009 13:06:16 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287939 Log: Added Tidy basic test for tidy_error_count Changed paths: A php/php-src/trunk/ext/tidy/tests/032.phpt Added: php/php-src/trunk/ext/tidy/tests/032.phpt =================================================================== --- php/php-src/trunk/ext/tidy/tests/032.phpt (rev 0) +++ php/php-src/trunk/ext/tidy/tests/032.phpt 2009-09-01 13:06:16 UTC (rev 287939) @@ -0,0 +1,17 @@ +--TEST-- +tidy_error_count() function - basic test for tidy_error_count() +--CREDITS-- +Christian Wenz <wenz@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)

« previous php.cvs (#60280) next »