/** * @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); } }
/** * Start validation and allow NULL, returns {@link AssertionChain} * * @return \Assert\AssertionChain */ function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null) { return that($value, $defaultMessage, $defaultPropertyPath)->nullOr(); }