public function testCodeJsHint() { return; // Avoid "Failing task since test cases were expected but none were found." $this->markTestIncomplete('MAGETWO-27639: Enhance JavaScript Static Tests'); $invoker = new AggregateInvoker($this); $invoker(function ($filename) { $cmd = new \Magento\TestFramework\Inspection\JsHint\Command($filename, self::$_reportFile); $result = false; try { $result = $cmd->canRun(); } catch (\Exception $e) { $this->markTestSkipped($e->getMessage()); } if ($result) { $this->assertTrue($cmd->run([]), $cmd->getLastRunMessage()); } }, $this->codeJsHintDataProvider()); }
public function testCodeJsHint() { $invoker = new AggregateInvoker($this); $invoker(function ($filename) { $cmd = new \Magento\TestFramework\Inspection\JsHint\Command($filename, self::$_reportFile); $result = false; try { $result = $cmd->canRun(); } catch (\Exception $e) { $this->markTestSkipped($e->getMessage()); } if ($result) { $this->assertTrue($cmd->run(array()), $cmd->getLastRunMessage()); } }, $this->codeJsHintDataProvider()); }