phpat icon indicating copy to clipboard operation
phpat copied to clipboard

PHP Architecture Tester - Easy architecture testing for PHP :heavy_check_mark:

Results 23 phpat issues
Sort by recently updated
recently updated
newest added

GithubActions supports annotations within changed files. These can be achieved with https://github.com/staabm/annotate-pull-request-from-checkstyle when the tool in question supports output in the checkstyle format. That means one can actually see errors...

enhancement
:lock: on hold

I added the configuration as shown in the readme. - class: tests\PhpStan\Architecture\MyFirstTest tags: - phpat.test And added the directory to the analyzed ones: parameters: level: 1 paths: - src -...

Hi! Great job on 0.10! Most of my tests included the `canOnlyDependOn` assertion, which I guess is removed in `0.10`. Was this done on purpose and do you maybe have...

**Question** Plugins should not be able to referance other plugins ``` - plugins - pluginA - pluginB - pluginC ``` How do we insure no plugin can reference any other...

**Enhancement description** Hello! I'm trying to write enforce that a domain object be both `final` and `readonly` but there does not seem to be a way to do this in...

enhancement

When the option `ignore_built_in_classes` is enabled, and there is a rule like: ``` return PHPat::rule() ->classes(Selector::namespace('App\Whatever')) ->shouldImplement() ->classes(Selector::classname(\JsonSerializable::class)); ``` PHPat reports: > App\Whatever\MyClass should implement JsonSerializable --- Built-in classes should...

bug

Hi! I have a class in the Domain namespace, which has Doctrine's attributes for ORM mapping. My classes have the following imports: ```php

bug

**Enhancement description** It would really make sense to have the ability to enforce not only the actual class naming like this: ``` return PHPat::rule() ->classes(Selector::extends(ApiTestCase::class)) ->shouldBeNamed('/ApiTest$/', true); ``` But to...

enhancement

**Bug Description** I'm not sure if this is a phpat bug or a phpstan bug. I've written the following test, but I'm getting an error, but IMHO this is not...

bug