thatBool() public static method

Sample usage: Assert::thatBool(isCool())->isTrue();
public static thatBool ( string $string ) : BooleanAssert
$string string
return BooleanAssert
示例#1
0
 /**
  * @test
  */
 public function isPresentShouldReturnTrueForNotNull()
 {
     //given
     $optional = Optional::fromNullable(new stdClass());
     //when
     $present = $optional->isPresent();
     //then
     Assert::thatBool($present)->isTrue();
 }