com php-src: Fixed tests: ext/spl/tests/class_implements_va riation.phpt ext/spl/tests/class_uses_variation.phpt
ext/standard/tests/class_object/class_exists_variation _001.phpt ext/standard/tests/class_object/trait _exists_variation_001.phpt
| From: | Dmitry Stogov | Date: | Mon, 02 Dec 2013 07:53:35 +0000 |
| Subject: | com php-src: Fixed tests: ext/spl/tests/class_implements_va riation.phpt ext/spl/tests/class_uses_variation.phpt ext/standard/tests/class_object/class_exists_variation _001.phpt ext/standard/tests/class_object/trait _exists_variation_001.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74196@lists.php.net to get a copy of this message | ||
Commit: edbefd1d5c5c466f1e32461f3a7298b588038cb5
Author: Dmitry Stogov <dmitry@zend.com> Mon, 2 Dec 2013 11:53:35 +0400
Parents: 9ed605892de40bf4b005198199139d5207957e6b
Branches: PHP-5.4 PHP-5.5 PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=edbefd1d5c5c466f1e32461f3a7298b588038cb5
Log:
Fixed tests
Changed paths:
M ext/spl/tests/class_implements_variation.phpt
M ext/spl/tests/class_uses_variation.phpt
M ext/standard/tests/class_object/class_exists_variation_001.phpt
M ext/standard/tests/class_object/trait_exists_variation_001.phpt
Diff:
diff --git a/ext/spl/tests/class_implements_variation.phpt
b/ext/spl/tests/class_implements_variation.phpt
index 52fdbca..84a52ab 100644
--- a/ext/spl/tests/class_implements_variation.phpt
+++ b/ext/spl/tests/class_implements_variation.phpt
@@ -16,8 +16,8 @@ var_dump(class_implements(new fs));
var_dump(class_implements('fs'));
echo "\n--- testing autoload ---\n";
-var_dump(class_implements('non-existent'));
-var_dump(class_implements('non-existent2', false));
+var_dump(class_implements('non_existent'));
+var_dump(class_implements('non_existent2', false));
function __autoload($classname) {
@@ -35,11 +35,11 @@ array(0) {
}
--- testing autoload ---
-attempting to autoload non-existent
+attempting to autoload non_existent
-Warning: class_implements(): Class non-existent does not exist and could not be loaded in %s on
line %d
+Warning: class_implements(): Class non_existent does not exist and could not be loaded in %s on
line %d
bool(false)
-Warning: class_implements(): Class non-existent2 does not exist in %s on line %d
+Warning: class_implements(): Class non_existent2 does not exist in %s on line %d
bool(false)
===DONE===
diff --git a/ext/spl/tests/class_uses_variation.phpt b/ext/spl/tests/class_uses_variation.phpt
index 9c21521..1a13521 100644
--- a/ext/spl/tests/class_uses_variation.phpt
+++ b/ext/spl/tests/class_uses_variation.phpt
@@ -16,8 +16,8 @@ var_dump(class_uses(new fs));
var_dump(class_uses('fs'));
echo "\n--- testing autoload ---\n";
-var_dump(class_uses('non-existent'));
-var_dump(class_uses('non-existent2', false));
+var_dump(class_uses('non_existent'));
+var_dump(class_uses('non_existent2', false));
function __autoload($classname) {
@@ -35,11 +35,11 @@ array(0) {
}
--- testing autoload ---
-attempting to autoload non-existent
+attempting to autoload non_existent
-Warning: class_uses(): Class non-existent does not exist and could not be loaded in %s on line %d
+Warning: class_uses(): Class non_existent does not exist and could not be loaded in %s on line %d
bool(false)
-Warning: class_uses(): Class non-existent2 does not exist in %s on line %d
+Warning: class_uses(): Class non_existent2 does not exist in %s on line %d
bool(false)
===DONE===
diff --git a/ext/standard/tests/class_object/class_exists_variation_001.phpt
b/ext/standard/tests/class_object/class_exists_variation_001.phpt
index 52a3584..5f51b4b 100644
--- a/ext/standard/tests/class_object/class_exists_variation_001.phpt
+++ b/ext/standard/tests/class_object/class_exists_variation_001.phpt
@@ -100,15 +100,12 @@ In __autoload(12345)
bool(false)
Arg value -2345
-In __autoload(-2345)
bool(false)
Arg value 10.5
-In __autoload(10.5)
bool(false)
Arg value -10.5
-In __autoload(-10.5)
bool(false)
Arg value 101234567000
@@ -116,11 +113,9 @@ In __autoload(101234567000)
bool(false)
Arg value 1.07654321E-9
-In __autoload(1.07654321E-9)
bool(false)
Arg value 0.5
-In __autoload(0.5)
bool(false)
Error: 8 - Array to string conversion, %sclass_exists_variation_001.php(%d)
diff --git a/ext/standard/tests/class_object/trait_exists_variation_001.phpt
b/ext/standard/tests/class_object/trait_exists_variation_001.phpt
index e7fa4af..81df711 100644
--- a/ext/standard/tests/class_object/trait_exists_variation_001.phpt
+++ b/ext/standard/tests/class_object/trait_exists_variation_001.phpt
@@ -100,15 +100,12 @@ In __autoload(12345)
bool(false)
Arg value -2345
-In __autoload(-2345)
bool(false)
Arg value 10.5
-In __autoload(10.5)
bool(false)
Arg value -10.5
-In __autoload(-10.5)
bool(false)
Arg value 101234567000
@@ -116,11 +113,9 @@ In __autoload(101234567000)
bool(false)
Arg value 1.07654321E-9
-In __autoload(1.07654321E-9)
bool(false)
Arg value 0.5
-In __autoload(0.5)
bool(false)
Error: 8 - Array to string conversion, %strait_exists_variation_001.php(%d)