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

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

Sample usage: Assert::thatBool(isCool())->isTrue();
public static thatBool ( string $string ) : BooleanAssert
$string string
Результат BooleanAssert
    public static function thatBool($string)
    {
        return BooleanAssert::that($string);
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function isPresentShouldReturnTrueForNotNull()
 {
     //given
     $optional = Optional::fromNullable(new stdClass());
     //when
     $present = $optional->isPresent();
     //then
     Assert::thatBool($present)->isTrue();
 }