コード例 #1
0
 public function testFactoryExceptionWrongInterface()
 {
     $context = \TestHelper::getContext();
     $aimeos = \TestHelper::getAimeos();
     $this->setExpectedException('\\Aimeos\\Controller\\Jobs\\Exception');
     $object = \Aimeos\Controller\Jobs\Product\Import\Csv\Factory::createController($context, $aimeos, 'Factory');
 }
コード例 #2
0
 public function testImport()
 {
     $aimeos = \TestHelper::getAimeos();
     $cntl = \Aimeos\Controller\Jobs\Product\Import\Csv\Factory::createController($this->context, $aimeos, 'Standard');
     $start = microtime(true);
     $cntl->run();
     $stop = microtime(true);
     echo "\n    product import CSV: " . ($stop - $start) . " sec\n";
 }