eZ\Publish\Core\Repository\Tests\Service\Integration\Base::assertProperty PHP Method

assertProperty() private method

private assertProperty ( $propertyName, $expectedValue, $actualValue, $equal = true )
    private function assertProperty($propertyName, $expectedValue, $actualValue, $equal = true)
    {
        if ($expectedValue instanceof \ArrayObject) {
            $expectedValue = $expectedValue->getArrayCopy();
        }
        if ($actualValue instanceof \ArrayObject) {
            $actualValue = $actualValue->getArrayCopy();
        }
        if ($equal) {
            $this->assertEquals($expectedValue, $actualValue, sprintf('Object property "%s" incorrect.', $propertyName));
        } else {
            $this->assertNotEquals($expectedValue, $actualValue, sprintf('Object property "%s" incorrect.', $propertyName));
        }
    }