function test_get_posts3() { $Q = new GetPostsQuery(); $args = array(); $args['taxonomy'] = 'does_not_exist'; $args['taxonomy_slug'] = 'does_not_exist'; $cnt = $Q->count_posts($args); $warnings = strip_tags($Q->get_warnings()); $this->assertTrue(strpos($warnings, 'Taxonomy does not exist: does_not_exist')); }