Skip to content

Commit

Permalink
Implement PSR2 cs and PSR-4 autoloading (#3)
Browse files Browse the repository at this point in the history
Implement PSR2 cs and PSR-4 autoloading
  • Loading branch information
webignition authored May 5, 2017
1 parent 4dbd158 commit bbdaf25
Show file tree
Hide file tree
Showing 39 changed files with 1,929 additions and 721 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
sudo: false
language: php

php:
- 5.5
- 5.6
- 7

install:
- composer install
- composer install

script:
- composer cs
- composer test
18 changes: 15 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@
}
],
"autoload": {
"psr-0": {
"webignition\\Tests": "tests/",
"": "src/"
"psr-4": {
"webignition\\WebsiteRssFeedFinder\\": "src/",
"webignition\\Tests\\WebsiteRssFeedFinder\\": "tests/"
}
},
"scripts": {
"test": "./vendor/bin/phpunit --colors=always",
"cs": "./vendor/bin/phpcs src tests --colors --standard=PSR2",
"ci": [
"@composer cs",
"@composer test"
]
},
"require": {
"php": ">=5.5.0",
"webignition/internet-media-type":">=0.1,<1.0",
Expand All @@ -25,6 +33,10 @@
"webignition/url":">=1.7.2,<2.0",
"webignition/cookie-url-matcher":">=0.1,<1.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"squizlabs/php_codesniffer": "3.*"
},
"minimum-stability":"dev",
"prefer-stable":true
}
Loading

0 comments on commit bbdaf25

Please sign in to comment.