コード例 #1
0
ファイル: QtBasicTestCase.php プロジェクト: 0xd34df00d/Qross
 /**
  * inheritance, calling a static parents method from withing another static method:
  * 	<code>foo->staticTrMethod() calls QObject::tr()</code>
  */
 function testCallStaticQtMethodWithinStaticPHPMethod()
 {
     echo "\ntesting foo::staticTrMethod()";
     $this->assertEquals(foo::staticTrMethod("hello") == "hello", "Could not call a static Qt method!");
     echo " passed";
 }