예제 #1
0
파일: Assert.php 프로젝트: letsdrink/ouzo
 /**
  * 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);
 }
예제 #2
0
 /**
  * @test
  * @dataProvider notEqualToNull
  * @param $notNull
  */
 public function shouldNotBeEqual($notNull)
 {
     CatchException::when(GeneralAssert::that(null))->isEqualTo($notNull);
     CatchException::assertThat()->isInstanceOf('PHPUnit_Framework_ExpectationFailedException');
 }