public function setUp()
 {
     $this->driver = $this->getMock('Zend\\Db\\Adapter\\Driver\\DriverInterface');
     $this->connection = $this->getMock('Zend\\Db\\Adapter\\Driver\\ConnectionInterface');
     $this->statement = $this->getMock('Zend\\Db\\Adapter\\Driver\\StatementInterface');
     $this->platform = $this->getMock('Zend\\Db\\Adapter\\Platform\\PlatformInterface');
     $this->mapper = $this->getMockForAbstractClass('OnticBase\\Database\\Mapper\\AbstractMapper');
     $this->driver->expects($this->any())->method('checkEnvironment')->will($this->returnValue(true));
     $this->driver->expects($this->any())->method('getConnection')->will($this->returnValue($this->connection));
     $this->driver->expects($this->any())->method('createStatement')->will($this->returnValue($this->statement));
 }