public function testGuardAgainstNullAllowsNonNull() { $object = new GuardedObject(); $this->assertNull($object->setNotNull('foo')); }
public function testGuardAgainstEmptyAllowsNonEmptyString() { $object = new GuardedObject(); $this->assertNull($object->setNotEmpty('foo')); }
public function testGuardForArrayOrTraversableAllowsTraversable() { $object = new GuardedObject(); $traversable = new ArrayObject(); $this->assertNull($object->setArrayOrTraversable($traversable)); }