importOne() public method

Imports one record according to the design of the specified import specification.
public importOne ( ImportSpecification $specification ) : array | null
$specification ScriptFUSION\Porter\Specification\ImportSpecification Import specification.
return array | null Record.
Esempio n. 1
0
 public function testImportOneOfMany()
 {
     $this->setExpectedException(ImportException::class);
     $this->provider->shouldReceive('fetch')->andReturn(new \ArrayIterator(['foo', 'bar']));
     $this->porter->importOne($this->specification);
 }