public function setUp() { $this->db = new MockDatabase(); MockQueryPost::$connection = $this->db; MockQueryComment::$connection = $this->db; }