Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Remove test from CompileTest
Browse files Browse the repository at this point in the history
  • Loading branch information
strahinjadjuric authored and ovr committed Apr 11, 2018
1 parent 733f602 commit abce840
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/PHPSA/Command/CompileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,4 @@ public function testExecute()

self::assertContains('Memory usage:', $commandTester->getDisplay());
}
// simple as it is
public function testIgnorePaths()
{
$ignore = ["/vendor"];
$files = [
"/vendor/path/to/1.php",
"/vendor/path/to/2.php",
"/vendor/path/to/3.php",
"/app/path/to/model.php",
];

$skip = 0;
foreach ($files as $file) {
foreach ($ignore as $item) {
if (preg_match("#$item#", $file)) {
$skip++;
break;
}
}
}

$this->assertEquals($skip, 3);
}
}

0 comments on commit abce840

Please sign in to comment.