| Total Complexity | 3 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class EnsureCommandsFollowNamingConventionTest extends TestCase |
||
| 8 | { |
||
| 9 | public function test_ensure_commands_follow_naming_convention() |
||
| 10 | { |
||
| 11 | $files = glob('vendor/hyde/framework/src/Commands/*.php'); |
||
| 12 | |||
| 13 | if (empty($files)) { |
||
| 14 | $this->markTestSkipped('No commands found.'); |
||
| 15 | } |
||
| 16 | |||
| 17 | foreach ($files as $filepath) { |
||
| 18 | $filename = basename($filepath, '.php'); |
||
| 19 | $this->assertStringStartsWith('Hyde', $filename); |
||
| 20 | $this->assertStringEndsWith('Command', $filename); |
||
| 21 | } |
||
| 24 |