private static function assertTestPosition($runName, $testName, $expectedPosition)
{
$resultFilePath = static::getResultFilePath($runName);
list($class, $method) = explode('::', $testName);
$expression = sprintf('//testsuite[contains(@name, "%s")]/testcase[%d][@name="%s"]', $class, $expectedPosition, $method);
$xml = file_get_contents($resultFilePath);
static::assertXpathNotEmpty($xml, $expression, sprintf('Could not find XPath expression "%s" in "%s" (%s)', $expression, $resultFilePath, $xml));
}