Commit Graph

12 Commits

Author SHA1 Message Date
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
ab2a87ee3c
Check for missing dataProviders 2019-02-18 17:51:21 +02:00
Bruce Weirdan
91ab7883bf
Update to weirdan/codeception-psalm-module 0.2.1 2019-02-18 16:19:30 +02:00
Bruce Weirdan
839b82b9a9
PHP 7.0 compatibility 2019-02-17 08:46:13 +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
e081131e4c
Skip test when running with older Psalm 2019-02-14 13:48:46 +02:00
Bruce Weirdan
8b0805670e
Limit expectException()'s argument to throwables 2019-02-14 13:12:40 +02:00
SignpostMarv
3af740709d void is a reserved word 2019-02-13 21:03:21 +00:00
Bruce Weirdan
bc9d452c27
Test for Assert::assertIsNotCallable() 2019-02-11 05:31:17 +02:00
Bruce Weirdan
2f2ff0374f
Added PHPUnit 7.5 assertions 2019-02-11 05:31:13 +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