public function testGetFromDb() { $dbProxy = new DbProxy("test_table", array("id", "title")); $dbProxy->setHttp($this->mockHttp); $this->mockHttp->shouldReceive('get')->andReturn("returnValue"); $this->assertEqual("returnValue", $dbProxy->select()); }
/** * Creates a new TransactionDbProxy object. */ public function __construct() { parent::__construct(null, array()); }