public function setUp() { $this->db = TestModel::SetUpDatabase(); $this->db->Query("\n CREATE TABLE test_compound\n (\n id_1 integer,\n id_2 integer,\n value text,\n PRIMARY KEY (id_1, id_2)\n );\n "); TestModel::set_db($this->db); $this->assertSame($this->db, TestModel::db()); CompoundKeyModel::set_db($this->db); $this->assertSame($this->db, CompoundKeyModel::db()); }