Skip to content

Commit

Permalink
Some small updates:
Browse files Browse the repository at this point in the history
- Adding .gitattributes file
- Cleaning up code
- Small efficiency improvements
- Adding phpunit/phpunit to require-dev entry in composer.json
- phpunit.xml cleanup
  • Loading branch information
dcarbone committed Jan 4, 2018
1 parent bb2b573 commit 89ff5a1
Show file tree
Hide file tree
Showing 7 changed files with 208 additions and 324 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/tests export-ignore
/.travis.yml export-ignore
/.gitignore export-ignore
/.gitattributes export-ignore
/phpunit.xml export-ignore
/README.md export-ignore
10 changes: 2 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
composer.phar
vendor/

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
/*.iml
/.svn
/.idea
/composer.lock
/vendor
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: php
php:
- 7.2
- 7.1
- 7.0
- 5.6
- 5.5
- 5.4
- hhvm

before_script:
- composer install --no-interaction --prefer-dist
- composer install --no-interaction --no-progress --no-suggest --optimize-autoloader
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"require": {
"php" : ">=5.4.0"
},

"require-dev": {
"phpunit/phpunit": "@stable"
},
"autoload": {
"psr-4": {
"DCarbone\\": "src/"
Expand Down
7 changes: 1 addition & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.6/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
syntaxCheck="false"
colors="true"
bootstrap="vendor/autoload.php">
bootstrap="./vendor/autoload.php">
<testsuites>
<testsuite name="TNS Parser Test Suite">
<directory suffix="Test.php">./test</directory>
Expand All @@ -15,8 +13,5 @@
<whitelist>
<directory>./src</directory>
</whitelist>
<blacklist>
<directory>./vendor</directory>
</blacklist>
</filter>
</phpunit>
Loading

0 comments on commit 89ff5a1

Please sign in to comment.