cvs: php-src(PHP_5_3) /ext/reflection/tests bug43926.phpt
| From: | Felipe Pena | Date: | Wed, 30 Jan 2008 14:49:20 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/reflection/tests bug43926.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48172@lists.php.net to get a copy of this message | ||
felipe Wed Jan 30 14:49:20 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/reflection/tests bug43926.phpt
Log:
Fix test
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug43926.phpt?r1=1.1.2.1&r2=1.1.2.2&diff_format=u
Index: php-src/ext/reflection/tests/bug43926.phpt
diff -u php-src/ext/reflection/tests/bug43926.phpt:1.1.2.1
php-src/ext/reflection/tests/bug43926.phpt:1.1.2.2
--- php-src/ext/reflection/tests/bug43926.phpt:1.1.2.1 Wed Jan 30 10:27:28 2008
+++ php-src/ext/reflection/tests/bug43926.phpt Wed Jan 30 14:49:20 2008
@@ -25,13 +25,43 @@
$ce = $re->newInstance();
print("Is? A ". ($ra->isInstance($ca) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof A) ? 'true' : 'false') ."\n");
-print("Is? C ". ($ra->isInstance($cc) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof C) ? 'true' : 'false') ."\n");
-print("Is? D ". ($ra->isInstance($cd) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof D) ? 'true' : 'false') ."\n");
-print("Is? E ". ($ra->isInstance($ce) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof E) ? 'true' : 'false') ."\n");
+print("Is? C ". ($rc->isInstance($ca) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof C) ? 'true' : 'false') ."\n");
+print("Is? D ". ($rd->isInstance($ca) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof D) ? 'true' : 'false') ."\n");
+print("Is? E ". ($re->isInstance($ca) ? 'true' : 'false') .",
instanceof: ". (($ca instanceof E) ? 'true' : 'false') ."\n");
+print "-\n";
+print("Is? A ". ($ra->isInstance($cc) ? 'true' : 'false') .",
instanceof: ". (($cc instanceof A) ? 'true' : 'false') ."\n");
+print("Is? C ". ($rc->isInstance($cc) ? 'true' : 'false') .",
instanceof: ". (($cc instanceof C) ? 'true' : 'false') ."\n");
+print("Is? D ". ($rd->isInstance($cc) ? 'true' : 'false') .",
instanceof: ". (($cc instanceof D) ? 'true' : 'false') ."\n");
+print("Is? E ". ($re->isInstance($cc) ? 'true' : 'false') .",
instanceof: ". (($cc instanceof E) ? 'true' : 'false') ."\n");
+print "-\n";
+print("Is? A ". ($ra->isInstance($cd) ? 'true' : 'false') .",
instanceof: ". (($cd instanceof A) ? 'true' : 'false') ."\n");
+print("Is? C ". ($rc->isInstance($cd) ? 'true' : 'false') .",
instanceof: ". (($cd instanceof C) ? 'true' : 'false') ."\n");
+print("Is? D ". ($rd->isInstance($cd) ? 'true' : 'false') .",
instanceof: ". (($cd instanceof D) ? 'true' : 'false') ."\n");
+print("Is? E ". ($re->isInstance($cd) ? 'true' : 'false') .",
instanceof: ". (($cd instanceof E) ? 'true' : 'false') ."\n");
+print "-\n";
+print("Is? A ". ($ra->isInstance($ce) ? 'true' : 'false') .",
instanceof: ". (($ce instanceof A) ? 'true' : 'false') ."\n");
+print("Is? C ". ($rc->isInstance($ce) ? 'true' : 'false') .",
instanceof: ". (($ce instanceof C) ? 'true' : 'false') ."\n");
+print("Is? D ". ($rd->isInstance($ce) ? 'true' : 'false') .",
instanceof: ". (($ce instanceof D) ? 'true' : 'false') ."\n");
+print("Is? E ". ($re->isInstance($ce) ? 'true' : 'false') .",
instanceof: ". (($ce instanceof E) ? 'true' : 'false') ."\n");
?>
--EXPECT--
Is? A true, instanceof: true
Is? C false, instanceof: false
Is? D true, instanceof: true
-Is? E true, instanceof: true
\ No newline at end of file
+Is? E true, instanceof: true
+-
+Is? A true, instanceof: true
+Is? C true, instanceof: true
+Is? D true, instanceof: true
+Is? E true, instanceof: true
+-
+Is? A false, instanceof: false
+Is? C false, instanceof: false
+Is? D true, instanceof: true
+Is? E true, instanceof: true
+-
+Is? A false, instanceof: false
+Is? C false, instanceof: false
+Is? D false, instanceof: false
+Is? E true, instanceof: true