public function throwsWhenTryingToDefineEntitiesThatAreNotEvenClasses() { $self = $this; $this->assertThrows(function () use($self) { $self->factory->defineEntity('NotAClass'); }); }