private static function assertTestSuitePosition($runName, $suite, $expectedPositions)
{
$resultFilePath = static::getResultFilePath($runName);
$expressions = array();
foreach ((array) $expectedPositions as $expectedPosition) {
$expressions[] = sprintf('//testsuite/testsuite[%d][contains(@name, "%s")]', $expectedPosition, $suite);
}
$expression = implode(' | ', $expressions);
$xml = file_get_contents($resultFilePath);
static::assertXpathNotEmpty($xml, $expression, sprintf('Could not find XPath expression "%s" in "%s" (%s)', $expression, $resultFilePath, $xml));
}