diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-05 23:14:21 +0200 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2014-04-05 23:14:21 +0200 |
commit | 3112304ec8516e0fcbe2672806d97900b8ff02ff (patch) | |
tree | c1fd8b5f03d6eafa3e73b78efa8f9b4d9675f49c /tests/php/phpt/class_obj/005-static-prop.phpt | |
parent | 479e9979a69b9fdb995525576d4588cd92239ed5 (diff) | |
parent | 877f40e4ec538260a58277ae9e3a50abcc857542 (diff) |
Merge branch 'master' of https://github.com/CopernicaMarketingSoftware/PHP-CPP
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 |