Commit Graph

5 Commits

Author SHA1 Message Date
Tom Klingenberg
45fd05f355 Add TestCase::createConfigured/PartialMock() to stub
Previously the create-configured and create-partial mock-methods were not
part of the stub.

Add them.
2020-08-06 16:16:06 +02:00
Tom Klingenberg
9e9a8bb295 Fix visibility TestCase::createMock
Upstream PHPUnit\Framework\TestCase::createMock() is protected, not public.

Fix is to set the proper upstream visibility; change from public to
protected.

Public for the method introcuded back in 2018 in fa76f652. Checked against
Phpunit 7.5+ and 8.

Ref: fa76f65209
2020-08-05 03:44:06 +02:00
Tom Klingenberg
7355af1380 Remove superfluous phpcs:ignoreFile marker
Remove markers that command PHP_CodeSniffer (Pear package base-name for
"phpcs") to skip files based on their own configuration as those files
are already with the .phpstub extension which effectively has them not
configured/already ignored  by phpcs base/upstr. configuration (project
configuration file: phpcs.xml.dist)

Fix is to remove these markers/directives, also not all .phpstub files
had them therefore this is effectively streamlining the file formats
for .phpstub to this regard.
2020-08-05 03:42:35 +02:00
Tom Klingenberg
a32a2c6899 WS-Fixes
Phpunit upstream indents (prefixes) docblock @param annotations and I can
imagine that some white-space has been taken over from that into the stub
files when writing them.

Also for separation by  empty lines between methods which looks as well
as an error quickly porting from upstream (better than anything else).
2020-08-05 03:41:22 +02:00
Bruce Weirdan
5128529ca9
Rename stubs from *.php to *.phpstub
This hides them from PHPStorm, preventing false positives it used to
emit.
2020-04-05 20:49:25 +03:00