public function its_factory_requires_a_username() { $this->beConstructedThrough('factory', [['foo' => 'user', 'token' => 'abc123']]); $this->shouldThrow()->duringInstantiation(); }