Ouzo\Tests\ModelAssert::isEqualTo PHP Method

isEqualTo() public method

Compares all attributes. If one model has loaded a relation and other has not, they are considered not equal.
public isEqualTo ( Model $expected )
$expected Ouzo\Model
    public function isEqualTo(Model $expected)
    {
        $this->_assertSameType($expected);
        AssertAdapter::assertEquals($expected->attributes(), $this->_actual->attributes(), 'Models have different attributes ');
    }