Ejemplo n.º 1
0
 function testCreatingObjects()
 {
     for ($i = 0; $i < 8000; $i++) {
         //	    while(true){
         $b = new QObject();
         $b->setObjectName("hallo");
         echo $i++ . "\n";
         echo $b->objectName();
         $b->__destruct();
     }
 }
Ejemplo n.º 2
0
 /**
  * QString as argument			<br><br>
  * <code>
  * $object = new QObject();				<br>
  * $object->setObjectName(new QString("hello string"));	<br>
  * $s = $object->objectName();		     		<br>
  * $s->toAscii()					<br>
  * </code>
  */
 function testAddQString()
 {
     echo "\ntesting QString as argument";
     $object = new QObject();
     $object->setObjectName(new QString("hello string"));
     $s = $object->objectName();
     $this->assertEquals($s->toAscii(), "hello string", "Return object does not contain the same text!");
     echo " passed";
 }