summaryrefslogtreecommitdiff
path: root/tests/php/phpt/class_obj/004-static-funct.phpt
blob: 8c78210b07821d74da6175d8dce2e17470d6bb0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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()