Commit graph

25 commits

Author SHA1 Message Date
7f7a7aa38d
TASK: Add missing docs 2017-04-25 16:35:54 +02:00
14c82e4a10 TASK: Migrate IsACallSniff
* Add further tests with quotes.
* Handle prefix in strings.
* Remove old originalTokenContent which is no longer in use, as we use
  str_replace, introduced in earlier commit.

Relates: #72
2017-04-25 14:36:19 +02:00
efd5d9114f
TASK: Migrate MissingNamespaceSniff
* Make MissingNamespaceSniff work again.
* Move to old namespace as it's a custom sniff, not a general one.
* Do not use new feature here, implement logic internal.
* Remove message from ruleset, use it directly.

Relates: #72
2017-04-25 14:11:40 +02:00
0c6bb133a1
TASK: Make some tests pass again
* All tests where only file name in diff was wrong are working again.

Relates: #72
2017-04-25 13:28:09 +02:00
c4c8faacd2
WIP: Fix TypeHintSniff
* Make TypeHintSniff tests pass again.
* Fix typo in class name preventing new feature mechanism from matching.

Relates: #72
2017-04-25 13:25:48 +02:00
94df1f2ad1
WIP: Fix use sniff
* Make use sniff tests pass again.

Relates: #72
2017-04-25 13:16:58 +02:00
2b1a1a0f19
WIP: Fix broken MissingVendorForPluginsAndModulesSniff tests
Relates: #72
2017-04-25 13:05:48 +02:00
2f6dc2304a
WIP: Refactor code to new architecture
* Migrate class names.
* Add new architecture of "Features".
* Configure old assignments for new features.
* Rename necessary parts.

Relates: #72
2017-04-25 12:58:19 +02:00
6a3d18ecfc
TASK: Add further test cases to GenericConstantUsageSniff
* To show what's also working and what will potentially provide non
  helpful warnings.

Relates: #64
2017-04-13 12:02:44 +02:00
9a905c492a
TASK: Add missing test for GenericFunctionCallSniff
Resolves: #64
2017-04-13 11:56:52 +02:00
34e616355f
TASK: Add missing test for GenericConstantUsageSniff
Relates: #64
2017-04-13 11:49:53 +02:00
Daniel Hürtgen
be4b76c192 BUGFIX: Adjust TYPO3 docs urls 2017-04-11 12:53:02 +02:00
0b21535f87
BUGFIX: Allow multiple runtime-set per test
Relates: #46
2017-04-06 16:11:29 +02:00
65512dcd1d
FEATURE: Add tests for MissingNamespaceSniff
Relates: #46
2017-04-06 15:53:03 +02:00
958086da24
FEATURE: Add tests for MissingVendorForPluginsAndModulesSniff
* With custom vendor and default vendor.

Relates: #46
2017-04-06 15:48:37 +02:00
0703167315
FEATURE: Allow to overwrite cli arguments for test
* Enable overwriting using Arguments.php.
* Add multiple sub tests for AjaxRegistrationSniff.

Relates: #46
2017-04-06 15:37:55 +02:00
63d48e01fa
FEATURE: Add all remaining tests
Relates: #46
2017-04-06 14:23:32 +02:00
bfda1cfec4
FEATURE: Add further test
Relates: #46
2017-04-06 12:42:17 +02:00
03f321c865
FEATURE: Add tests and fix issues
* Add test for IsACallSniff.
* Fix doublicate finds in IsACallSniff and
  InstantiationWithObjectManagerSniff.
* Both didn't stop looking for class at end of expression.

Relates: #46
2017-04-06 12:35:44 +02:00
af74a5db21
FEATURE: Add further tests
Relates: #46
2017-04-06 12:11:31 +02:00
d7911cccee
BUGFIX: Keep line ending for inline comments
* As test showed, line ending was removed for inline comments "//".
* This line ending is now kept.
* Test does not fail anymore.

Relates: #46, #3
2017-04-06 11:57:00 +02:00
a78d94ab13
WIP|FEATURE: Add further tests
* Add new tests and improve existing

Relates: #46
2017-04-06 11:44:15 +02:00
b23ee6ef8b
TASK: Improve tests
* Allow phpcbf / diff to be optional, as not all tests are fixable.
* Provide more information in case of error.
* Provide phpunit dist to run phpunit without anything special.

Relates: #46
2017-04-06 11:14:32 +02:00
7c35998c62
FEATURE: Also enable testing phpcbf
* Add diff to test actual fixes.

Relates: #46
2017-04-06 10:55:17 +02:00
1b309bd709
WIP|FEATURE: First working test
* Parses fixtures to auto run tests for sniffs.
* Compares actual result for fixture input against expected result from
  fixture.

Relates: #46
2017-04-06 10:39:24 +02:00