protected final function assertReferenceEquals(&$expectedRef, &$otherRef, $message = 'References must be equal')
{
$this->assertSame($expectedRef, $otherRef, $message);
$originalValue = $expectedRef;
$instance = new \stdClass();
$expectedRef = $instance;
$this->assertSame($instance, $otherRef, $message);
$expectedRef = $originalValue;
}