Commit Graph

57 Commits

Author SHA1 Message Date
someniatko
486c4dd837 [composer.json] allow Psalm 5 beta 2022-07-29 15:25:01 +03:00
Bruce Weirdan
8d7446eb48
Upgrade Psalm interfaces
Switch from legacy plugin hook interfaces to event handler interfaces
2021-06-06 10:46:01 +03:00
Vincent Langlet
9ac6bdbe34 Move phpunit to devRequirement 2020-12-06 18:57:24 +01:00
Bruce Weirdan
16260a87d3
Bumped codeception-psalm-module to allow testing on PHP 8 2020-11-03 03:36:03 +02:00
Matthew Brown
ea17d71532
Allow PHP 7.1 again 2020-10-26 15:18:31 -04:00
Matthew Brown
e006914489
Allow 4.0 2020-10-19 08:43:17 -04:00
Matthew Brown
6406bc272b
Allow beta 2020-10-19 08:42:20 -04:00
Matthew Brown
50f224c5aa
Require master 2020-10-12 20:42:16 -04:00
Rudolph Gottesheim
b1051f29d7
Allow PHP 8 in composer.json, run in CI 2020-09-19 04:10:45 +03:00
Matthew Brown
fca9b22392
Support 4.x dev branch 2020-08-30 12:26:06 -04:00
Bruce Weirdan
1bb4710491
Drop semver requirement from require-dev as it's also in require 2020-08-24 23:55:09 +03:00
Bruce Weirdan
9c11bac834
Fix Prophecy-related issues
1. `prophesize()` has always been protected, not public
2. Provide generic definition for `prophesize()` implemented by `phpspec/prophecy-phpunit`
2020-08-24 22:32:11 +03:00
Bruce Weirdan
206ca87c66
Fix DeprecatedMethod 2020-08-24 21:42:50 +03:00
Vladyslav Startsev
f35392ea71 - moved composer/semver to require-dev
- removed unused method
2020-06-19 01:39:47 +03:00
Claas Augner
bc67e74054
Allow composer/semver ^2.0 || ^3.0 2020-06-04 23:35:26 +02:00
Bruce Weirdan
fd9fb0f4c1
Updated codeception module to get regexp support 2020-05-24 22:29:12 +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
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
c389fbd301
Bump weirdan/codeception-psalm-module 2020-03-30 04:40:37 +03:00
SignpostMarv
e113531999
rolling back constraint
supporting newer versions of phpunit leads to an issue where if `Foo extends TestCase` and `TestCase::setUp()` does not explicitly return void, failure occurs.

see psalm/phpunit-psalm-plugin#53
2020-02-07 13:13:10 +00:00
SignpostMarv
4330aea865
updating codeception/base constraint
* codeception/phpunit-wrapper 7.x does not allow phpunit 8 to be installed
* codeception/base 2.5 does not allow codeception/phpunit-wrapper 8.x to be installed
2020-02-07 12:47:33 +00:00
SignpostMarv
1b4b4c0f16
phpunit 9 was released
https://mobile.twitter.com/s_bergmann/status/1225698301208432642
2020-02-07 10:19:25 +00:00
Bruce Weirdan
e0f6ed03ff
Bumped weirdan/codeception-psalm-module
This is needed to prevent installation of muglug/package-versions-56
2019-11-17 04:51:11 +02:00
Bruce Weirdan
17dfe19487
Dropped support for Psalm <3.6.2
It's not feasible to support variable order of union types in acceptance
tests.
2019-11-17 04:35:50 +02:00
Bruce Weirdan
4f64be0b64
Bumped Psalm version
This fixes the problem with provider usage data being cached
See vimeo/psalm#1879
2019-06-30 19:02:03 +03:00
Matthew Brown
d2e2c43aa1
Allow installation with Psalm ^3.3 2019-06-12 08:33:50 -04:00
Brown
93b6617829 Split checks out into separate functions 2019-05-20 13:53:52 -04:00
Matthew Brown
82ef477f17
Use Ocramius' package versions 2019-05-16 18:01:19 -04:00
Matthew Brown
f3138fbbc6
Bump min Psalm version to support registering method usage 2019-04-27 16:17:56 -04:00
Bruce Weirdan
62d7bcffa4
Bump psalm version due to missing functionality
Breaking change: plugin now requires psalm 3.0.13+ (TIterable was made
generic in that version)
2019-02-20 00:03:06 +02:00
Bruce Weirdan
8732175020
Implemented provider type checks
- Invalid providers (should be iterable with array elements)
- Providers returning fewer arguments then test requires
- Providers returning datasets that are incompatible with test
signatures

refs psalm/phpunit-psalm-plugin#13
2019-02-19 22:58:56 +02:00
Bruce Weirdan
d9277bb993
Bumped Psalm version to 3.0.10
Breaking change: minimum psalm version is now 3.0.10 (due to the hook
interface added in that version)

Also fixed test to be compatible with legacy PHPUnit
2019-02-18 18:16:13 +02:00
Bruce Weirdan
91ab7883bf
Update to weirdan/codeception-psalm-module 0.2.1 2019-02-18 16:19:30 +02:00
Bruce Weirdan
f5ddd1dffb
Suppress missing constructor for TestCase descendants
When there are any initializers (`setUp` or `@before`) it's quite likely
properties were initialized there. As a followup development, we may
later implement more fine-grained checks to see what actually been
initialized in those methods.
2019-02-17 08:28:22 +02:00
Bruce Weirdan
8b77d0c231
Bump Psalm version (because of false positives) 2019-02-14 14:03:11 +02:00
Bruce Weirdan
6a2552a210
Bump PHPunit version
The stubs we're providing are for namespace version of PHPUnit classes,
and those are only available since PHPUnit 6.0
2019-02-14 13:45:18 +02:00
Bruce Weirdan
6fedf0633c
depend on stable version of codeception module 2019-02-14 07:01:11 +02:00
Bruce Weirdan
2f2ff0374f
Added PHPUnit 7.5 assertions 2019-02-11 05:31:13 +02:00
Bruce Weirdan
2d8f6443d5
install, then update
This appears to be a problem with composer update (solver)
2019-02-09 09:57:59 +02:00
Bruce Weirdan
6e0f0643d6
Added test infrastructure
- Added Codeception scaffolding
- Added travis config
- Added example test
2019-02-09 09:20:40 +02:00
Bruce Weirdan
1284e51d3c
bumped squizlabs/php_codesniffer to prevent continue 2 errors 2019-02-09 09:15:24 +02:00
Bruce Weirdan
18ffce8944
fixed composer check
- Dropped `tests` folder references (tests are not there)
- Dropped `@test` reference from `composer check` (phpunit is not
depended on, tests are absent)
- Ignored `stubs` folder (cannot really be checked by psalm) in
`psalm.xml`
2018-12-09 00:24:35 +02:00
Matthew Brown
41be62b689
Allow Psalm plugin to be run with dev-master 2018-12-08 11:53:51 -05:00
Matthew Brown
ff427489f0
Add back Psalm requirement 2018-11-18 22:18:42 -05:00