Commit Graph

184 Commits

Author SHA1 Message Date
Bruce Weirdan
619506c79a
Merge pull request #83 from weirdan/fix-issues
Fix issues introduced/detected in recent Psalm versions
2020-08-24 22:30:51 +03:00
Bruce Weirdan
55c362994c
Use tags instead of combined_tags
`combined_tags` appear to contain only known tags
2020-08-24 22:15:09 +03:00
Bruce Weirdan
206ca87c66
Fix DeprecatedMethod 2020-08-24 21:42:50 +03:00
Bruce Weirdan
0cc2e86928
Fixed ParamNameMismatch
Also removed unused uses
2020-08-24 21:41:06 +03:00
Bruce Weirdan
6b873b57c1
Merge pull request #81 from ktomk/patch-stubs-1
Patch stubs 1
2020-08-07 01:49:56 +03:00
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
7ccaf51a10 Resolve Constraint for MockBuilder stubs
File contains two classes (one class and one interface), the mock-object
interface was missing resolution for Constraint.

This Constraint is PHPUnit\Framework\Constraint\Constraint.
2020-08-05 03:42:02 +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
88d464841d
Merge pull request #79 from vladyslavstartsev/cleanup-package
Cleanup package (close #76)
2020-06-20 21:21:37 +03:00
Vladyslav Startsev
b55d221eb5 - removed unused class import
- made anon functions static (for better performance)
- list() -> []
- remove unneeded type castings
2020-06-19 08:22:53 +03:00
Vladyslav Startsev
f35392ea71 - moved composer/semver to require-dev
- removed unused method
2020-06-19 01:39:47 +03:00
Vladyslav Startsev
c855857457 fix annotation 2020-06-19 01:38:51 +03:00
Vladyslav Startsev
e61d8bee72 deleted unused Exception 2020-06-19 01:37:02 +03:00
Matthew Brown
83b5c107a8
Merge pull request #75 from caugner/patch-1
Allow composer/semver ^2.0 || ^3.0
2020-06-04 17:44:57 -04:00
Claas Augner
bc67e74054
Allow composer/semver ^2.0 || ^3.0 2020-06-04 23:35:26 +02:00
Bruce Weirdan
138998ffd3
Merge pull request #73 from mr-feek/fix-that
fix: Argument::that allows params
2020-05-24 23:30:10 +03:00
Feek
cd2ebfae14 test: test cases for Argument::that 2020-05-24 13:06:31 -07:00
Feek
1000bb6929 fix: Argument::that allows params 2020-05-24 12:52:09 -07:00
Bruce Weirdan
4290f2b157
Merge pull request #74 from weirdan/update-tests-to-account-for-tuples
Update tests to account for tuples
2020-05-24 22:40:50 +03:00
Bruce Weirdan
786e0bd1d3
Updated tests to account for changed Psalm output
Psalm started to distinguish shapes from tuples so its error messages
changed.
2020-05-24 22:29:52 +03:00
Bruce Weirdan
fd9fb0f4c1
Updated codeception module to get regexp support 2020-05-24 22:29:12 +03:00
Bruce Weirdan
f40da72269
Merge pull request #71 from weirdan/fix-build-failures
Fix build failures
2020-05-04 07:44:02 +03:00
Bruce Weirdan
5590278379
Cast the return method for unknown method
The method is not present (and not called) for older versions of
php-parser, but Psalm still complains about it.
2020-05-04 07:24:35 +03:00
Bruce Weirdan
880f56dfe3
Use getCommentLine shim to account for older versions of php-parser 2020-05-04 07:22:13 +03:00
Bruce Weirdan
a978d2039b
Don't use deprecated method 2020-05-04 07:09:24 +03:00
Bruce Weirdan
5ea01f2c84
Merge pull request #70 from weirdan/fix-gitattributes
Add missing export-ignore
2020-05-04 07:08:59 +03:00
Bruce Weirdan
2fc5e66744
Add missing export-ignore 2020-05-04 07:02:09 +03:00
Bruce Weirdan
12b3978cea
Merge pull request #67 from weirdan/shim-queueClassLikeForScanning
Shim queueClassLikeForScanning
2020-04-06 01:49:26 +03:00
Bruce Weirdan
6705c8cfc1
Merge pull request #66 from weirdan/add-gitattributes
Added gitattributes to exclude dev files from dist archives
2020-04-06 01:43:10 +03:00
Bruce Weirdan
5f5070276d
Shim queueClassLikeForScanning 2020-04-06 01:31:38 +03:00
Bruce Weirdan
e31d9f5e0a
Added gitattributes to exclude dev files from dist archives 2020-04-05 23:09:17 +03:00
Bruce Weirdan
a87e003713
Merge pull request #65 from weirdan/update-to-codeception-4.x
Update to Codeception 4.x
2020-04-05 21:51:07 +03:00
Bruce Weirdan
63838b8e39
Bump PHPUnit to 7.5+
Codeception 4.x is not compatible with lower versions
2020-04-05 21:43:16 +03:00
Bruce Weirdan
20e147f40d
Update to Codeception 4.x 2020-04-05 21:41:57 +03:00
Matthew Brown
4b662fd63f
Merge pull request #64 from weirdan/rename-stubs
Rename stubs from *.php to *.phpstub
2020-04-05 14:21:51 -04: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
Bruce Weirdan
e997675691
Merge pull request #61 from radarlog/psr-4
Ensure compatibility with PSR-4 autoloading standard
2020-04-05 20:25:05 +03:00
Ilian Ranguelov
47958c59b3
Revert "reflect stubs"
This reverts commit 7989d190
2020-04-05 17:34:36 +02:00
Ilian Ranguelov
7989d190ed
reflect stubs
and ensure compatibility with PhpStorm
2020-04-03 22:43:16 +02:00
Ilian Ranguelov
049de92c15
add composer config section 2020-04-03 20:35:14 +02:00
Ilian Ranguelov
7cef85e751
define php requirements 2020-04-03 20:32:23 +02:00
Ilian Ranguelov
4e1e824b83
apply PSR-4 to tests 2020-04-03 20:27:38 +02:00
Ilian Ranguelov
00b480fcb0
apply PSR-4 to source 2020-04-03 20:26:50 +02:00
Bruce Weirdan
ebfae6c319
Merge pull request #60 from weirdan/fix-travis-lint-warnings
Fixed travis lint warnings
2020-04-02 00:20:23 +03:00
Bruce Weirdan
668554f84c
Merge pull request #50 from snapshotpl/patch-1
Assert functions are public and static
2020-04-02 00:03:06 +03:00
Bruce Weirdan
067bb8d149
Fixed travis lint warnings 2020-04-01 23:49:19 +03:00
Witold Wasiczko
aa0be36782
Assert functions are public and static 2020-04-01 20:11:28 +02:00
Bruce Weirdan
d3c96627cd
Cache effectively (#59)
* Cache composer cache, don't cache vendor

Instead of caching the vendor folder (which changes for every job, as
different levels of dependencies are installed) we now cache composer
cache folders (where it stores downloaded packages and cloned repos).
This should make caching much more effective, without introducing any
persistance issues (as metadata used for dependency resolution is not
cached).

* Allow vendor changes autodiscard

`ocramius/package-versions` changes the file it installs, so composer
may notice this (when the package is installed from source?) and refuse
upgrade/downgrade.
2020-04-01 13:08:24 +03:00