From: Felipe Pena Date: Wed, 30 Jan 2008 11:56:34 +0000 (+0000) Subject: Fix tests X-Git-Tag: RELEASE_2_0_0a1~694 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ca171f514c39e7760446d88229fbd645fb27944;p=php Fix tests --- diff --git a/ext/reflection/tests/bug43926.phpt b/ext/reflection/tests/bug43926.phpt index 373f9f1ba3..35f87f69ed 100644 --- a/ext/reflection/tests/bug43926.phpt +++ b/ext/reflection/tests/bug43926.phpt @@ -34,4 +34,9 @@ print("Is? E ". ($ra->isInstance($ce) ? 'true' : 'false') .", instanceof: ". (($ Is? A true, instanceof: true Is? C false, instanceof: false Is? D true, instanceof: true +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 diff --git a/ext/reflection/tests/reflectionClass_isInstance_basic.phpt b/ext/reflection/tests/reflectionClass_isInstance_basic.phpt index 07ec0cea79..d221cbd3a0 100644 --- a/ext/reflection/tests/reflectionClass_isInstance_basic.phpt +++ b/ext/reflection/tests/reflectionClass_isInstance_basic.phpt @@ -30,7 +30,7 @@ foreach ($classes as $class) { ?> --EXPECTF-- is myA a A? bool(true) -is myB a A? bool(false) +is myB a A? bool(true) is myC a A? bool(false) is myX a A? bool(false) is myA a B? bool(false) @@ -43,7 +43,7 @@ is myC a C? bool(true) is myX a C? bool(false) is myA a I? bool(false) is myB a I? bool(false) -is myC a I? bool(false) +is myC a I? bool(true) is myX a I? bool(false) is myA a X? bool(false) is myB a X? bool(false) @@ -51,7 +51,7 @@ is myC a X? bool(false) is myX a X? bool(true) --UEXPECTF-- is myA a A? bool(true) -is myB a A? bool(false) +is myB a A? bool(true) is myC a A? bool(false) is myX a A? bool(false) is myA a B? bool(false) @@ -64,7 +64,7 @@ is myC a C? bool(true) is myX a C? bool(false) is myA a I? bool(false) is myB a I? bool(false) -is myC a I? bool(false) +is myC a I? bool(true) is myX a I? bool(false) is myA a X? bool(false) is myB a X? bool(false) diff --git a/ext/reflection/tests/reflectionObject_isInstance_basic.phpt b/ext/reflection/tests/reflectionObject_isInstance_basic.phpt index c317f0d49c..5b4c97a59c 100644 --- a/ext/reflection/tests/reflectionObject_isInstance_basic.phpt +++ b/ext/reflection/tests/reflectionObject_isInstance_basic.phpt @@ -23,7 +23,7 @@ foreach ($classes as $class) { ?> --EXPECTF-- is myA a A? bool(true) -is myB a A? bool(false) +is myB a A? bool(true) is myX a A? bool(false) is myA a B? bool(false) is myB a B? bool(true) @@ -33,7 +33,7 @@ is myB a X? bool(false) is myX a X? bool(true) --UEXPECTF-- is myA a A? bool(true) -is myB a A? bool(false) +is myB a A? bool(true) is myX a A? bool(false) is myA a B? bool(false) is myB a B? bool(true)