jani Thu, 10 Dec 2009 09:22:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291940
Log:
- Fix test mess (testing the deprecated ini option is pointless when using the
func does same thing)
Changed paths:
U
php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt
Modified:
php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt
===================================================================
---
php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt
2009-12-10 07:11:52 UTC (rev 291939)
+++
php/php-src/branches/PHP_5_3/ext/standard/tests/network/define_syslog_variables_variation.phpt
2009-12-10 09:22:54 UTC (rev 291940)
@@ -1,12 +1,5 @@
--TEST--
Test define_syslog_variables() function : variation
---SKIPIF--
-<?php
-if(substr(PHP_OS, 0, 3) == "WIN")
- die("skip don't run on Windows");
-?>
---INI--
-define_syslog_variables = true
--FILE--
<?php
/* Prototype : void define_syslog_variables(void)
@@ -15,6 +8,8 @@
* Alias to functions:
*/
+define_syslog_variables();
+
echo "*** Testing define_syslog_variables() : variation ***\n";
$log_constants = array(
@@ -90,8 +85,8 @@
}
?>
===DONE===
---EXPECT--
-Warning: Directive 'define_syslog_variables' is deprecated in PHP 5.3 and
greater in Unknown on line 0
+--EXPECTF--
+Deprecated: Function define_syslog_variables() is deprecated in %s on line %d
*** Testing define_syslog_variables() : variation ***
PASSED
===DONE===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php