Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding phpunit as dev dep so that it is easier for new users to get u…

…p and running
  • Loading branch information...
commit d22230f1b610ca3d95058a119376819fa0946e1d 1 parent 9b154ee
@mtdowling mtdowling authored
Showing with 5 additions and 4 deletions.
  1. +2 −2 build.xml
  2. +2 −1  composer.json
  3. +1 −1  tests/bootstrap.php
View
4 build.xml
@@ -16,7 +16,7 @@
<target name="test" description="Run unit tests" depends="test-init">
<trycatch>
<try>
- <exec passthru="true" command="phpunit" checkReturn="true" />
+ <exec passthru="true" command="vendor/bin/phpunit" checkReturn="true" />
</try>
<finally>
<testserver cmd="${cmd.testserver}" action="stop" />
@@ -44,7 +44,7 @@
</target>
<target name="coverage" depends="prepare">
- <exec passthru="true" command="phpunit --coverage-html=${dir.output}/coverage --coverage-clover=${dir.output}/logs/clover.xml" />
+ <exec passthru="true" command="vendor/bin/phpunit --coverage-html=${dir.output}/coverage --coverage-clover=${dir.output}/logs/clover.xml" />
</target>
<target name="view-coverage">
View
3  composer.json
@@ -62,7 +62,8 @@
"zendframework/zend-cache": "2.0.*",
"zendframework/zend-log": "2.0.*",
"zend/zend-log1": "1.12",
- "zend/zend-cache1": "1.12"
+ "zend/zend-cache1": "1.12",
+ "phpunit/phpunit": "3.7.*"
},
"repositories": [
View
2  tests/bootstrap.php
@@ -16,7 +16,7 @@
}
// Include the composer autoloader
-$autoloader = require_once dirname(__DIR__) . '/vendor/autoload.php';
+$autoloader = require dirname(__DIR__) . '/vendor/autoload.php';
// Add the services file to the default service builder
$servicesFile = __DIR__ . '/Guzzle/Tests/TestData/services/services.json';
Please sign in to comment.
Something went wrong with that request. Please try again.