/** * Is the object enabled? * * @param DateTime|null $onDate optional, defaults to 'now' * @return bool */ public function isEnabled(DateTime $onDate = null) { return isset($this->enablement) && $this->enablement->isValid($onDate); }
public function testSerializeReturnsString() { $subject = new Enablement(); $this->assertInternalType('string', $subject->serialize()); }