Ouzo\Tests\Assert::that PHP Метод

that() публичный статический Метод

Sample usage: Assert::that($object)->isInstanceOf(Controller::class);
public static that ( mixed $subject ) : GeneralAssert
$subject mixed
Результат GeneralAssert
    public static function that($subject)
    {
        return GeneralAssert::that($subject);
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function shouldFlattenNullValue()
 {
     //given
     $optional = Optional::of(Optional::of(Optional::fromNullable(null)));
     //when
     $result = $optional->flatten()->orNull();
     //then
     Assert::that($result)->isNull();
 }