expectException(\InvalidArgumentException::class); new AssemblyExporterService([$options]); } /** * @return array */ public function dataProviderTestConstructorFailsWithoutRequiredOptions() { return [ 'Without file reader' => [ 'options' => [ 'rdf_exporter' => new tao_models_classes_export_RdfExporter(), ] ], 'Without RDF exporter' => [ 'options' => [ 'assembly_files_reader' => new AssemblyFilesReader() ] ], 'Invalid file reader' => [ 'options' => [ 'assembly_files_reader' => new \stdClass(), 'rdf_exporter' => new tao_models_classes_export_RdfExporter(), ] ], 'Invalid RDF exporter' => [ 'options' => [ 'assembly_files_reader' => new AssemblyFilesReader(), 'rdf_exporter' => new \stdClass(), ] ], ]; } }