diff options
author | valmat <ufabiz@gmail.com> | 2014-03-28 22:34:50 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-03-28 22:34:50 +0600 |
commit | 00f105e5490c96d2b39431d320f44e0f2ef040a5 (patch) | |
tree | 3fa6ce89b98569ba8fa32546eb399dfb0c92768a /tests/php | |
parent | 4091487adfbfd07750524fd7910d7178af21f816 (diff) |
new test: Test class with static property and class constant
Diffstat (limited to 'tests/php')
-rw-r--r-- | tests/php/phpt/class_obj/004-static-prop.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/php/phpt/class_obj/004-static-prop.phpt b/tests/php/phpt/class_obj/004-static-prop.phpt new file mode 100644 index 0000000..4073247 --- /dev/null +++ b/tests/php/phpt/class_obj/004-static-prop.phpt @@ -0,0 +1,19 @@ +--TEST-- +Test class with static property and class constant +--SKIPIF-- +<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?> +--FILEEOF-- +<?php + +var_dump( TestBaseClass\MyClass::CONSTANT1 ); +var_dump( TestBaseClass\MyClass::EXP ); +var_dump( TestBaseClass\MyClass::CONSTANT2 ); +var_dump( TestBaseClass\MyClass::CONSTANT1 ); + + +//echo PHP_EOL; +--EXPECT-- +bool(true) +float(2.718281828459) +int(-2582341) +bool(true)
\ No newline at end of file |