/** * Fluent custom boolean assertion to simplify your tests. * * Sample usage: * <code> * Assert::thatBool(isCool())->isTrue(); * </code> * * @param string $string * @return BooleanAssert */ public static function thatBool($string) { return BooleanAssert::that($string); }
/** * @test * @dataProvider notFalse * @param $notFalse */ public function shouldNotBeFalse($notFalse) { CatchException::when(BooleanAssert::that($notFalse))->isFalse(); CatchException::assertThat()->isInstanceOf('PHPUnit_Framework_ExpectationFailedException'); }