function getWPDBMock() { $wpdb = $this->testCase->getMock('testWPDB', array('get_results'), array(), '', false); $wpdb->posts = 'wp_posts'; return $wpdb; }