public function IntervalMustBeInteger() { $this->setExpectedException('InvalidArgumentException'); $this->createPeriod(SubscriptionPeriod::UNIT_DAILY, 'not an int'); }