public function __construct($content) { if (is_string($content) && trim($content)) { NpcFactory::fleshOut($content, $this); } else { NpcFactory::fleshOutFromData($content, $this); } }
public function testFleshOutFailure() { $this->setExpectedException(NinjaWars\core\InvalidNpcException::class); NpcFactory::fleshOut('NotARealNPCByAnyMeans', null); }