Author: Sebastian Bergmann Date: 2007-01-16 10:54:13 +0100 (Tue, 16 Jan 2007) New Revision: 4514
Log: - Simplify Mock Object handling even more. Modified: experimental/Workflow/tests/case.php Modified: experimental/Workflow/tests/case.php =================================================================== --- experimental/Workflow/tests/case.php 2007-01-16 09:51:48 UTC (rev 4513) +++ experimental/Workflow/tests/case.php 2007-01-16 09:54:13 UTC (rev 4514) @@ -15,10 +15,6 @@ */ abstract class ezcWorkflowTestCase extends ezcTestCase { - protected static $aMock = null; - protected static $bMock = null; - protected static $cMock = null; - protected $definition; protected $workflow; protected $startNode; @@ -36,11 +32,11 @@ dirname( __FILE__ ) . '/data/' ); - if ( self::$aMock === null ) + if ( !class_exists( 'SOA', false ) ) { - self::$aMock = $this->getMock( 'ezcWorkflowServiceObject', array(), array(), 'SOA' ); - self::$bMock = $this->getMock( 'ezcWorkflowServiceObject', array(), array(), 'SOB' ); - self::$cMock = $this->getMock( 'ezcWorkflowServiceObject', array(), array(), 'SOC' ); + $this->getMock( 'ezcWorkflowServiceObject', array(), array(), 'SOA' ); + $this->getMock( 'ezcWorkflowServiceObject', array(), array(), 'SOB' ); + $this->getMock( 'ezcWorkflowServiceObject', array(), array(), 'SOC' ); } } -- svn-components mailing list svn-components@lists.ez.no http://lists.ez.no/mailman/listinfo/svn-components