Assert::thatBool(isCool())->isTrue();
/** * @test */ public function isPresentShouldReturnTrueForNotNull() { //given $optional = Optional::fromNullable(new stdClass()); //when $present = $optional->isPresent(); //then Assert::thatBool($present)->isTrue(); }