that() public static method

public static that ( Model $actual )
$actual Ouzo\Model
Beispiel #1
0
 /**
  * Fluent custom model assertion to simplify your tests.
  *
  * Sample usage:
  * <code>
  *  Assert::thatModel(new User(['name' => 'bob']))->hasSameAttributesAs(new User(['name' => 'bob']));
  * </code>
  *
  * @param Model $actual
  * @return ModelAssert
  */
 public static function thatModel(Model $actual)
 {
     return ModelAssert::that($actual);
 }