Skip to content
Browse files

Update phpunit, composer, and gitignore

A few changes to these guys to make the project run a little more
smoothly.
  • Loading branch information...
1 parent a244952 commit d90fe9650a3c85393fe97f6582d768477b51776b Jarrod Nettles committed Mar 9, 2013
Showing with 31 additions and 13 deletions.
  1. +3 −0 .gitignore
  2. +8 −9 composer.json
  3. +20 −4 phpunit.xml.dist
View
3 .gitignore
@@ -0,0 +1,3 @@
+vendor
+phpunit.xml
+composer.lock
View
17 composer.json
@@ -1,10 +1,11 @@
{
"name": "masterexploder/PHPThumb",
- "type": "library",
- "require": {
+ "type": "library",
+ "description": "A library for manipulating images in PHP.",
+ "require": {
"php": ">=5.3.0"
},
- "homepage": "https://github.com/masterexploder/PHPThumb",
+ "homepage": "https://github.com/masterexploder/PHPThumb",
"authors": [
{
"name": "Ian Selby",
@@ -14,16 +15,14 @@
"name": "Jarrod Nettles",
"email": "jarrod@squarecrow.com"
}
-
],
"autoload": {
"psr-0": {
- "PHPThumb": "src"
+ "PHPThumb": "src",
+ "PHPThumb\\Tests": "tests"
}
},
-
- "keywords": ["image", "resize", "rotate"],
- "description": "A library for manipulating images in PHP."
-}
+ "keywords": ["image", "resize", "rotate"]
+}
View
24 phpunit.xml.dist
@@ -1,9 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
-<phpunit bootstrap="tests/bootstrap.php" colors="true">
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false"
+ bootstrap="vendor/autoload.php"
+ >
<testsuites>
- <testsuite name="PHPThumb">
- <directory suffix=".php">./tests/</directory>
+ <testsuite name="PHPThumb Test Suite">
+ <directory>./tests/PHPThumb/</directory>
</testsuite>
</testsuites>
-</phpunit>
+
+ <filter>
+ <whitelist>
+ <directory>./src/</directory>
+ </whitelist>
+ </filter>
+</phpunit>

0 comments on commit d90fe96

Please sign in to comment.
Something went wrong with that request. Please try again.