/** * @covers \Pressbooks\Utility\show_experimental_features */ public function test_show_experimental_features() { $this->assertInternalType('bool', \Pressbooks\Utility\show_experimental_features()); $this->assertInternalType('bool', \Pressbooks\Utility\show_experimental_features('http://pressbooks.com')); }
/><label for="epub3"> <?php _e('EPUB 3 (beta)', 'pressbooks'); ?> </label><br /> <input type="checkbox" id="xhtml" name="export_formats[xhtml]" value="1" <?php if (false == $xhtml) { ?> disabled <?php } ?> /><label for="xhtml"> <?php _e('XHTML', 'pressbooks'); ?> </label><br /> <?php if (true == \Pressbooks\Utility\show_experimental_features()) { ?> <input type="checkbox" id="icml" name="export_formats[icml]" value="1" <?php if (false == $icml) { ?> disabled <?php } ?> /><label for="icml"> <?php _e('ICML (for InDesign)', 'pressbooks'); ?> </label><br /> <?php } ?> <input type="checkbox" id="odt" name="export_formats[odt]" value="1" <?php