snappymail/tests/Common/NpmTest.php
2016-07-02 13:50:03 +03:00

25 lines
No EOL
452 B
PHP

<?php
namespace CommonTests;
class NpmTest extends \PHPUnit_Framework_TestCase
{
public function testJsValidate()
{
$out = array();
// exec('gulp js:validate', $out);
// $this->assertTrue(0 < \count($out));
exec('eslint -c .eslintrc.js dev/*', $out);
$this->assertTrue(\is_array($out));
$noProblem = false === \strpos(\implode('|', $out), 'problem');
if (!$noProblem)
{
var_dump($out);
}
$this->assertTrue($noProblem);
}
}