RendererGenerators\PHP: improved XPath conversion in test conditions