that() public static method

public static that ( $actual )
Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * @test
  * @dataProvider notEqualToNull
  * @param $notNull
  */
 public function shouldNotBeEqual($notNull)
 {
     CatchException::when(GeneralAssert::that(null))->isEqualTo($notNull);
     CatchException::assertThat()->isInstanceOf('PHPUnit_Framework_ExpectationFailedException');
 }