converted value replacer test to PHPUnit