Skip to content

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

@vtsatskin

Description

@vtsatskin

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions