Exemplo n.º 1
0
 /**
  * @test
  */
 public function it_provides_five_entry_points()
 {
     $instances = [it(null), this(null), these(null), those(null), that(null)];
     foreach ($instances as $instance) {
         $this->assertInstanceOf("Essence\\Essence", $instance);
     }
 }
Exemplo n.º 2
0
/**
 * Start validation and allow NULL, returns {@link AssertionChain}
 *
 * @return \Assert\AssertionChain
 */
function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
{
    return that($value, $defaultMessage, $defaultPropertyPath)->nullOr();
}