Pinq\Tests\PinqTestCase::assertReferenceEquals PHP Method

assertReferenceEquals() final protected method

final protected assertReferenceEquals ( &$expectedRef, &$otherRef, $message = 'References must be equal' )
    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;
    }