From: Marcus Boerger Date: Sat, 19 Apr 2003 18:21:58 +0000 (+0000) Subject: Add a test for ctor precedence X-Git-Tag: SPL_ALPHA~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc27fbd90f5bc67c968bcf71b6c0481e6d59ba9d;p=php Add a test for ctor precedence --- diff --git a/tests/classes/inheritance_002.phpt b/tests/classes/inheritance_002.phpt new file mode 100755 index 0000000000..41358928bf --- /dev/null +++ b/tests/classes/inheritance_002.phpt @@ -0,0 +1,87 @@ +--TEST-- +Constructor precedence +--SKIPIF-- + +--FILE-- + +--EXPECT-- +### PHP4 style +string(17) "Child constructor" +string(16) "Base constructor" +### PHP5 style +string(17) "Child constructor" +string(16) "Base constructor" +### Mixed style 1 +string(17) "Child constructor" +string(16) "Base constructor" +### Mixed style 2 +string(17) "Child constructor" +string(16) "Base constructor" \ No newline at end of file