Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update composer.json #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ php:
- 5.4
- 5.5
- 5.6

script: phpunit Tests/SpeedyDiffTest.php --coverage-text

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install
2 changes: 0 additions & 2 deletions SpeedyDiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace JasonBradley\SpeedyDiff;

require_once './Exceptions/DiffException.php';

use JasonBradley\SpeedyDiff\Exceptions\DiffException;

/**
Expand Down
2 changes: 1 addition & 1 deletion Tests/SpeedyDiffTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once dirname(__FILE__) . '/../SpeedyDiff.php';
require_once __DIR__ . '/../vendor/autoload.php';

use JasonBradley\SpeedyDiff\SpeedyDiff,
JasonBradley\SpeedyDiff\Exceptions\DiffException;
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"classmap": ["SpeedyDiff.php", "Exceptions"]
}
}
2 changes: 1 addition & 1 deletion example.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once 'SpeedyDiff.php';
require_once __DIR__ . '/vendor/autoload.php';

use JasonBradley\SpeedyDiff\SpeedyDiff;

Expand Down