public function makeMethodShouldThrowExceptionWhenGivenInvalidData() { // Arrange... $this->expectException(InvalidArgumentException::class); // Act... (new ResourceFactory())->make('foo'); }