Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function test() |
||
20 | { |
||
21 | $sourceStorage = new ServiceStorage(array($this, 'readData')); |
||
22 | $targetStorage = new ServiceStorage(array($this, 'writeData')); |
||
23 | |||
24 | $importer = Importer::build($targetStorage); |
||
25 | |||
26 | $import = Import::build($importer, $sourceStorage); |
||
27 | |||
28 | $eventDispatcher = new EventDispatcher(); |
||
29 | $importRunner = new ImportRunner(new DefaultWorkflowFactory($eventDispatcher)); |
||
30 | |||
31 | $importRunner->run($import); |
||
32 | |||
33 | $this->assertEquals(array(array('data1'), array('data2')), $this->dataWritten); |
||
34 | } |
||
35 | |||
47 |