Commit graph

225 commits

Author SHA1 Message Date
a13d25f0ae Merge pull request #61 from DanielSiepmann/feature/gitlab-ci
Feature/gitlab ci
2017-04-11 12:25:14 +02:00
421f3859c0 Merge pull request #63 from DanielSiepmann/feature/editorconfig
FEATURE: Provide initial editorconfig
2017-04-11 12:23:58 +02:00
Daniel Hürtgen
749f977633 FEATURE: Provide initial editorconfig 2017-04-11 12:23:27 +02:00
Daniel Hürtgen
7790f19a74 FEATURE: Convert to php-codesniffer-standards composer package type 2017-04-11 11:13:14 +02:00
e8211dc411 Merge remote-tracking branch 'origin/develop' into feature/gitlab-ci 2017-04-11 11:10:19 +02:00
87a3cc071a Merge pull request #60 from DanielSiepmann/feature/update-typoscript-dependency
TASK: Update to latest TypoScript tokenizer
2017-04-11 11:07:19 +02:00
38722b7d51 Merge pull request #56 from DanielSiepmann/feature/46-automated-testing
Feature/46 automated testing
2017-04-11 11:05:37 +02:00
161ea3f582
TASK: Update autoloading
* Split up dev loading
2017-04-11 11:00:27 +02:00
89af4a2e37
TASK: Configure phpmd
* Make phpmd pass.
* Comment supressions with a reason.
2017-04-11 08:40:19 +02:00
e48cbe712e
BUGFIX: Allow phpunit tests to run even if phpcs.xml.dist is provided
* By adding Coding Standard to calls, phpcs will not lookup the standard
  to use in our phpcs.xml.dist, which is used to check the project
  itself.
* Instead it will use the provided standard.
2017-04-10 13:32:44 +02:00
d81b50d88e Merge remote-tracking branch 'origin/feature/update-typoscript-dependency' into feature/gitlab-ci 2017-04-10 09:35:03 +02:00
56f5578a1f Merge remote-tracking branch 'origin/feature/46-automated-testing' into feature/gitlab-ci 2017-04-10 09:34:48 +02:00
b20bf043f0
TASK: Don't show warnings
* On CI we just want to make sure we don't have any errors.
2017-04-10 09:32:22 +02:00
65bc89ad7c Merge remote-tracking branch 'origin/develop' into feature/46-automated-testing 2017-04-09 20:20:21 +02:00
a16ae7b8d4
TASK: Update to latest TypoScript tokenizer
* As official project does no longer modify the file to tokenize.
* Add tests to test integration.
2017-04-09 20:14:16 +02:00
cb6562b18e Merge branch 'feature/46-automated-testing' into feature/gitlab-ci 2017-04-09 14:42:38 +02:00
Daniel Hürtgen
cf14c8dd7b Merge pull request #57 from DanielSiepmann/hotfix/fix-broken-vendor-sniff
BUGFIX: Update string to replace missing vendor token
2017-04-09 14:13:40 +02:00
6528c391b2
FEATURE: Make each sniff run as a new test
* Allows running all further sniffs, even if a single sniff fails.
* Shows all issues at once in output.
* Use native SplFileInfo instead of Symfony, as we have no need for the
  dependency.

Relates: #46
2017-04-09 13:40:10 +02:00
f373826cc6
BUGFIX: Update string to replace missing vendor token
* Using double quotes with method call didn't work the way.
* Use normal string concatenation instead.
2017-04-09 12:51:57 +02:00
0c733c5e80 Merge remote-tracking branch 'origin/develop' into feature/46-automated-testing 2017-04-09 12:46:43 +02:00
b8d84c5bdc
TASK: Add further linting 2017-04-09 00:14:27 +02:00
3e89316430
TASK: Make composer available as bin 2017-04-08 23:38:04 +02:00
ba20024783
TASK: Migrate to smaller alpine images
* To have faster downloads, smaller images, simpler installs
2017-04-08 23:32:11 +02:00
c511f1a70b
WIP|FEATURE: Test on multiple php versions
* Use different jobs to run in parallel.
* Use different docker image for each php version.
* Provide common way to install composer on each image.
2017-04-08 23:29:08 +02:00
a2eb6d799d
TASK: Install make to run install routine 2017-04-08 23:16:29 +02:00
bd3e6b080d
BUGFIX: Finish installation / setup on gitlab ci
* Install PHPCS Standard to execute with tests
2017-04-08 23:07:26 +02:00
3e33096a47
BUGFIX: Make tests work in gitlab ci env 2017-04-08 23:04:45 +02:00
92c973c7f4
WIP|FEATURE: Integrate gitlab ci
* Provide a way to run php unit functional tests
2017-04-08 22:58:03 +02:00
Daniel Hürtgen
84266c381d Merge pull request #50 from DanielSiepmann/feature/42-deprecated-constants
Feature/42 deprecated constants
2017-04-08 12:35:43 +02:00
64bcf4fa72
WIP|TASK: try to ignore fixtures from inspection 2017-04-06 16:22:12 +02:00
0b21535f87
BUGFIX: Allow multiple runtime-set per test
Relates: #46
2017-04-06 16:11:29 +02:00
e957e5fe18
TASK: Refactor, follow CS and add more info on error
Relates: #46
2017-04-06 16:00:44 +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
c8166df601
WIP|FEATURE: Allow scrutinizer to run tests
* Install standard to enable sniffs to run.

Relates: #46
2017-04-06 13:02:30 +02:00
f9ad7070a5
TASK: Add mapping for tests
Relates: #46
2017-04-06 12:48:43 +02:00
58bda24360
WIP|FEATURE: Integrate tests into scrutinizer
Relates: #46
2017-04-06 12:42:37 +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
20952b7710
TASK: Refactor options access
* No longer use trait but static methods due to lack of Dependency
  Injection.
* Adjust all calls.
* Also don't use yield any longer but return array of file names.

Relates: #42
2017-04-06 09:12:43 +02:00
b99438fff9
TASK: Refactor remove duplicate logic
* Make option trait cleaner, remove duplicate logic and use methods for
  same logic.
* Also fix issue in readme pointing to non existing config name.

Relates: #42
2017-04-06 08:26:13 +02:00
3ceffb1680 Merge pull request #53 from DanielSiepmann/feature/38-add-typoscript-tokenizer
Feature/38 add typoscript tokenizer
2017-04-06 08:17:10 +02:00