function testSearchBy3() { $Q = new GetPostsForm(); $Q->set_nonce_field(''); // override nonce $Q->set_css('', false); // blank out CSS $Q->set_tpl('[+post_type.options+]'); $actual = $Q->generate(array('post_type')); //print $Q->placeholders['post_type.options']; exit; //print $actual; exit; //print '<pre>'; print_r($Q->placeholders); print '</pre>';exit; $expected = '<option value="" >Select post-type</option> <option value="attachment" >attachment</option> <option value="house" >house</option> <option value="movie" >movie</option> <option value="page" >page</option> <option value="people" >people</option> <option value="post" >post</option> <option value="room" >room</option> <option value="snake" >snake</option> <option value="test" >test</option>'; $this->assertTrue(in_html($expected, $actual)); }