cvs: php-src /ext/reflection/tests bug43926.phpt
| From: | Felipe Pena | Date: | Wed, 30 Jan 2008 15:23:41 +0000 |
| Subject: | cvs: php-src /ext/reflection/tests bug43926.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-48173@lists.php.net to get a copy of this message | ||
felipe Wed Jan 30 15:23:41 2008 UTC
Modified files:
/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.3&r2=1.4&diff_format=u
Index: php-src/ext/reflection/tests/bug43926.phpt
diff -u php-src/ext/reflection/tests/bug43926.phpt:1.3
php-src/ext/reflection/tests/bug43926.phpt:1.4
--- php-src/ext/reflection/tests/bug43926.phpt:1.3 Wed Jan 30 11:56:34 2008
+++ php-src/ext/reflection/tests/bug43926.phpt Wed Jan 30 15:23:41 2008
@@ -25,9 +25,24 @@
$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--
@@ -35,8 +50,38 @@
Is? C false, instanceof: false
Is? D true, instanceof: true
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
--UEXPECT--
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