Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit 4055571

Browse files
authored
Add missing rule error (#32)
1 parent c72e070 commit 4055571

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/RulesTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ class RulesTest extends TestCase
1111

1212
public function testRules()
1313
{
14-
foreach (glob(__DIR__ . '/rules/*.rule') as $ruleFile) {
14+
foreach ($ruleFiles = glob(__DIR__ . '/rules/*.rule') as $ruleFile) {
1515
$this->runAssertions($this->buildData(file($ruleFile, FILE_IGNORE_NEW_LINES)));
1616
}
17+
$this->assertGreaterThan(3, count($ruleFiles), 'Rules not found. Did you check out the submodule?');
1718
}
1819

1920
protected function runAssertions(array $data)

0 commit comments

Comments
 (0)