/** * @expectedException App\Exception\Model\InvalidTwitterHandleException */ public function testCreateInstanceWithNullTwitterThrowsException() { $supporter = Supporter::create(); }
/** * @param $supporterID * @return Supporter */ public function getSupporterByID($supporterID) : Supporter { return Supporter::create($this->getById($supporterID)); }