Ouzo\Tests\ModelAssert::that PHP Method

that() public static method

public static that ( Model $actual )
$actual Ouzo\Model
    public static function that(Model $actual)
    {
        return new ModelAssert($actual);
    }

Usage Example

コード例 #1
0
ファイル: Assert.php プロジェクト: letsdrink/ouzo
 /**
  * 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);
 }