diff options
Diffstat (limited to 'tests/php/phpt/class_obj/004-static-funct.phpt')
-rw-r--r-- | tests/php/phpt/class_obj/004-static-funct.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/php/phpt/class_obj/004-static-funct.phpt b/tests/php/phpt/class_obj/004-static-funct.phpt new file mode 100644 index 0000000..8c78210 --- /dev/null +++ b/tests/php/phpt/class_obj/004-static-funct.phpt @@ -0,0 +1,26 @@ +--TEST-- +Test class with static function +--SKIPIF-- +<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> +--FILEEOF-- +<?php + +// this will call PublicClass::staticMethod() +TestBaseClass\ClassWithStatic::static1(); + +// this will call PrivateClass::staticMethod() +TestBaseClass\ClassWithStatic::static2(); + +// this will call regularFunction() +TestBaseClass\ClassWithStatic::static3(); + +// this will also call PrivateClass::staticMethod() +TestBaseClass\staticFun1(); + + +//echo PHP_EOL; +--EXPECT-- +testStaticPubClass::staticMethod() +testStatic regular function +testStaticPrivClass::staticMethod() +testStaticPrivClass::staticMethod()
\ No newline at end of file |