Skip to content

Commit

Permalink
Export the parsed array, not the result of eval()
Browse files Browse the repository at this point in the history
Bug in cproensa's original commit.
  • Loading branch information
dregad committed Apr 30, 2016
1 parent ff2eb16 commit b942dff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Mantis/ConfigParserTest.php
Expand Up @@ -86,7 +86,7 @@ public function testArrays() {

# Export the converted array, and parse again.
# The result should match both the model and the previously parsed array
$t_parser = new ConfigParser( var_export( $t_reference_result , true ) );
$t_parser = new ConfigParser( var_export( $t_parsed_1 , true ) );
$t_parsed_2 = $t_parser->parse();
$this->assertEquals( $t_parsed_2, $t_reference_result, $this->errorMessage( $t_string ) );
$this->assertEquals( $t_parsed_2, $t_parsed_1, $this->errorMessage( $t_string ) );
Expand Down

0 comments on commit b942dff

Please sign in to comment.