public function testInvalidSpecificationCallback() { $this->setExpectedException(InvalidCallbackResultException::class); $this->createSubImport(function () { // Intentionally empty. }); $this->import(); }