[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/bindings/phpqt/tests
From: Thomas Moenicke <tm () php-qt ! org>
Date: 2008-05-07 21:04:38
Message-ID: 1210194278.449592.32569.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 805213 by moenicke:
silent
M +1 -19 QtApplicationTestCase.php
--- trunk/playground/bindings/phpqt/tests/QtApplicationTestCase.php #805212:805213
@@ -49,7 +49,7 @@
}
// try to get the same object
- function testObjectBack() {
+ function testQApplicationInstance() {
echo "\ntesting getting object back";
$this->assertEquals(is_object(QApplication::instance()), true, "Could not fetch \
instance of QApplication!"); // we need this, otherwise ZE would destroy $app too \
early @@ -57,24 +57,6 @@
echo " passed";
}
- // try to create and check a reference
- function testReference() {
- echo "\ntesting getting a reference";
-/* $argc=1;
- $argv=array("argv");
- $app = new QApplication($argc,$argv);
-*/
- // set the object name to 'original'
- $this->app->setObjectName(new QString("original"));
- // create a reference
- $app_ref = &$this->app;
- // set the reference's object name
- $app_ref->setObjectName(new QString("reference"));
- // now we expect the reference name at the original
- $this->assertEquals($this->app->objectName()->__toString(), "reference", "Could \
not fetch instance of QApplication!");
- QTimer::singleShot(100,$this->app,SLOT("quit()"));
- echo " passed";
- }
function testVirtualMethod() {
echo "\ntesting calling a virtual method";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic