HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //usr/local/lib/php/tests/HTML_Template_Flexy/tests/test_plugin_modifiers.html.phpt
--TEST--
Template Test: plugin_modifiers.html
--FILE--
<?php
require_once 'testsuite.php';
compilefile('plugin_modifiers.html', 
	array(
		'numbertest' =>  10000.123,
		'datetest' =>  '2004-01-12'
	), 
	array('plugins'=>array('Savant'))
);

compilefile('flexy_raw_with_element.html', 
	array( ), 
	array( )
 
);
--EXPECTF--
===Compiling plugin_modifiers.html===



===Compiled file: plugin_modifiers.html===
<H1>Testing Plugin Modifiers</H1>


<?php echo $this->plugin("dateformat",$t->datetest);?>

<?php echo $this->plugin("numberformat",$t->numbertest);?>


Bug #3946 - inside raw!
 
<input type="checkbox" name="useTextarea3" <?php if ($this->options['strict'] || (isset($t->person) && method_exists($t->person, 'useTextarea'))) echo $this->plugin("checked",$t->person->useTextarea());?>>

 

===With data file: plugin_modifiers.html===
<H1>Testing Plugin Modifiers</H1>


12 Jan 2004
10,000.12

Bug #3946 - inside raw!
 
<input type="checkbox" name="useTextarea3" >

 

===Compiling flexy_raw_with_element.html===

Error:%s/tests/templates/flexy_raw_with_element.html on Line 5 in Tag &lt;INPUT&gt;:<BR>
Flexy:raw can only be used with flexy:ignore, to prevent conversion of html elements to flexy elements