/** * Fluent custom primitives' and objects' assertion to simplify your tests. * * Sample usage: * <code> * Assert::that($object)->isInstanceOf(Controller::class); * </code> * * @param mixed $subject * @return GeneralAssert */ public static function that($subject) { return GeneralAssert::that($subject); }
/** * @test * @dataProvider notEqualToNull * @param $notNull */ public function shouldNotBeEqual($notNull) { CatchException::when(GeneralAssert::that(null))->isEqualTo($notNull); CatchException::assertThat()->isInstanceOf('PHPUnit_Framework_ExpectationFailedException'); }