Skip to content

Commit

Permalink
Merge pull request #23 from wandersonwhcr/update-autoload
Browse files Browse the repository at this point in the history
Change: Use PSR-4 Autoloader
  • Loading branch information
Florian Körner authored Sep 20, 2017
2 parents 6b270b5 + ed5651b commit 2ad7fca
Show file tree
Hide file tree
Showing 31 changed files with 7 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ php:
- 7.0
- 7.1

script:
- phpunit tests/

install:
- composer install

script:
- php vendor/bin/phpunit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ If you need to know all holidays for a specific country you can instantiate one

## Running Tests

Run a `php composer.phar install` command in the base directory to install the `phpunit` dependency. After that you can simply call `vendor/bin/phpunit tests/` to run the test suite.
Run a `php composer.phar install` command in the base directory to install the `phpunit` dependency. After that you can simply call `php vendor/bin/phpunit` to run the test suite.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"phpunit/phpunit": "~4.0"
},
"autoload": {
"psr-0": { "Checkdomain\\Holiday": "lib/" }
"psr-4": { "Checkdomain\\Holiday\\": "src/" }
},
"autoload-dev": {
"psr-0": { "Checkdomain\\Holiday": "tests/" }
"psr-4": { "Checkdomain\\Holiday\\": "test/" }
}
}
12 changes: 1 addition & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,8 @@

<testsuites>
<testsuite name="Checkdomain Holidays Test Suite">
<directory>./tests</directory>
<directory>./test</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>

</phpunit>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2ad7fca

Please sign in to comment.