_db)){ $this->_db = DBManagerFactory::getInstance(); } } public function tearDown() { } public function test_order_by_amount() { $query = "SELECT * FROM opportunities ORDER BY amount ASC"; $this->_db->query($query); // and make no error messages are asserted $this->assertEmpty($this->_db->lastError(), "lastError should return false of the last legal query that is ordering by amount against opportunities"); $query = "SELECT * FROM opportunities ORDER BY amount_usdollar ASC"; $this->_db->query($query); // and make no error messages are asserted $this->assertEmpty($this->_db->lastError(), "lastError should return false of the last legal query that is ordering by amount_usdollar against opportunities"); } }