Ouzo\Tests\ModelAttributesMatcher::__construct PHP Method

__construct() public method

public __construct ( Model $expected )
$expected Ouzo\Model
    public function __construct(Model $expected)
    {
        $this->expected = $expected;
        $this->expectedAttributes = $expectedAttributes = Arrays::filterByAllowedKeys($this->expected->attributes(), $this->expected->getFields());
    }