diff options
author | valmat <ufabiz@gmail.com> | 2014-04-06 00:10:59 +0600 |
---|---|---|
committer | valmat <ufabiz@gmail.com> | 2014-04-06 00:10:59 +0600 |
commit | cdae9845ac7c223d12bafc0fcd146cfae2c61363 (patch) | |
tree | 99b1a2a30734fcfb5286e432cbae5d15258ae596 /tests/php/phpt/class_obj/005-static-prop.phpt | |
parent | 61374e5ddd285f9a125a52005ad7eaefd3585f02 (diff) |
Changed the test php/phpt/class_obj/005-static-prop.phpt Included checking the static properties:
https://github.com/CopernicaMarketingSoftware/PHP-CPP/commit/ffdccb83d460791202bdb258dbb9106da877da3b
Diffstat (limited to 'tests/php/phpt/class_obj/005-static-prop.phpt')
-rw-r--r-- | tests/php/phpt/class_obj/005-static-prop.phpt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/php/phpt/class_obj/005-static-prop.phpt b/tests/php/phpt/class_obj/005-static-prop.phpt new file mode 100644 index 0000000..c0aa2ef --- /dev/null +++ b/tests/php/phpt/class_obj/005-static-prop.phpt @@ -0,0 +1,32 @@ +--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::CONSTANT3 ); + +var_dump( TestBaseClass\MyClass::$StatProp1 ); +var_dump( TestBaseClass\MyClass::$Exp ); +var_dump( TestBaseClass\MyClass::$StatProp2 ); +var_dump( TestBaseClass\MyClass::$StatProp3 ); +TestBaseClass\MyClass::$StatProp2 = "otherval"; +var_dump( TestBaseClass\MyClass::$StatProp2 ); + + +//echo PHP_EOL; +--EXPECT-- +string(11) "some string" +float(2.718281828459) +int(-2582341) +bool(true) +string(11) "some string" +float(2.718281828459) +int(-2582341) +bool(true) +string(8) "otherval"
\ No newline at end of file |