phpA-B icon indicating copy to clipboard operation
phpA-B copied to clipboard

Using mixed case in test names causes HTML replacements tags not to be replaced

Open vtsatskin opened this issue 12 years ago • 0 comments

Doing something like this:

<?php
$myTest = new phpab('myTest');
$myTest->add_variation('my_variation', "I'm a variation!");
?>

{phpab myTest}
I'm a control!
{/phpab myTest}

Causes the output not to be replaced:

{phpab myTest}
I'm a control!
{/phpab myTest}

However, the output is correct if the replacement tag is changed to lowercase:

<?php
$myTest = new phpab('myTest');
$myTest->add_variation('my_variation', "I'm a variation!");
?>

{phpab mytest}
I'm a control!
{/phpab mytest}

Which produces either output:

I'm a control!

or

I'm a variation!

vtsatskin avatar Aug 17 '13 01:08 vtsatskin