Move all files to tome/
This commit is contained in:
parent
5675bcfc36
commit
674daab35b
2874 changed files with 0 additions and 0 deletions
25
tome/tools/Phpat/ArchitectureTest.php
Normal file
25
tome/tools/Phpat/ArchitectureTest.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tools\Phpat;
|
||||
|
||||
use PHPat\Selector\Selector;
|
||||
use PHPat\Test\Builder\Rule;
|
||||
use PHPat\Test\PHPat;
|
||||
|
||||
final class ArchitectureTest {
|
||||
|
||||
public function test_all_classes_should_be_final(): Rule {
|
||||
return PHPat::rule()
|
||||
->classes(
|
||||
Selector::inNamespace(
|
||||
namespace: '/^Drupal\\\\opd_\w+/',
|
||||
regex: TRUE,
|
||||
),
|
||||
)
|
||||
->excluding(Selector::isInterface())
|
||||
->shouldBeFinal();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue