Author: Frederik Holljen
Date: 2006-09-22 17:01:46 +0200 (Fri, 22 Sep 2006)
New Revision: 3538
Log:
- added test for testing disconnect when there are no connections
Modified:
trunk/SignalSlot/tests/static_connections_test.php
Modified: trunk/SignalSlot/tests/static_connections_test.php
===================================================================
--- trunk/SignalSlot/tests/static_connections_test.php 2006-09-22 14:56:41 UTC
(rev 3537)
+++ trunk/SignalSlot/tests/static_connections_test.php 2006-09-22 15:01:46 UTC
(rev 3538)
@@ -25,6 +25,7 @@
$this->receiver = new TheReceiver();
TheReceiver::$globalFunctionRun = false;
TheReceiver::$staticFunctionRun = false;
+ ezcSignalStaticConnections::getInstance()->connections = array();
}
public function testSingleConnectionGlobalFunction()
@@ -201,6 +202,12 @@
$this->assertEquals( array( "slotNoParams3", "slotNoParams1",
"slotNoParams2" ), $this->receiver->stack );
}
+ public function testDisconnectEmpty()
+ {
+ ezcSignalStaticConnections::getInstance()->disconnect( "TheGiver",
"signal", array( $this->receiver, "slotNoParams3" ), 1000 );
+ $this->assertEquals( 0, count(
ezcSignalStaticConnections::getInstance()->connections ) );
+ }
+
public static function suite()
{
return new ezcTestSuite( "ezcSignalStaticConnectionsTest" );
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components