function test_isEmpty() { $s1 = new QString(); $this->assertTrue($s1->isEmpty(), "Could not ask isEmpty()!"); $s1->append("I"); $this->assertFalse($s1->isEmpty(), "Could not ask isEmpty()!"); echo "\ntesting QString::isEmpty() passed"; }
/** * appending a QString to another QString: * <code>$firstString->append( $secondString )</code> */ function testQStringAppendObject() { echo "\ntesting QString::append(new QString(\"hello\"))"; $s = new QString("hello"); $t = new QString(" world"); $s->append($t); $this->assertEquals($s->__toString(), "hello world", "Could not append QString to QString!"); echo " passed"; }