function setUp() { $this->sql = new MockComplexSelectSQL($this); $this->conn = new MockMySQLConnection($this); $this->stmt = new MockMySqlQueryStatement($this); $toolkit = new MockLimbToolkit($this); $toolkit->setReturnReference('getDbConnection', $this->conn); $this->dao = new SQLBasedDAOTestVersion($this); $this->dao->setReturnReference('_initSQL', $this->sql); $this->dao->SQLBasedDAO(); Limb :: registerToolkit($toolkit); }