Skip to content

Commit

Permalink
Make Workflow tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Apr 25, 2012
1 parent 4dd9e04 commit cf13db9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
run-tests-tmp
vendor
composer.lock
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@
"homepage": "https://github.com/zetacomponents",
"license": "apache2",
"name": "zetacomponents/workflow",
"type": "library"
"type": "library",
"require": {
"zetacomponents/base": "*"
},
"require-dev": {
"zetacomponents/unit-test": "*"
}
}
14 changes: 14 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Zeta Components Workflow">
<directory suffix="_test.php">./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
</phpunit>
15 changes: 15 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
if ( ! @include __DIR__ . '/../vendor/.composer/autoload.php' )
{
die(<<<'EOT'
You must set up the project dependencies, run the following commands:
wget http://getcomposer.org/composer.phar
php composer.phar install --dev
You can then run tests by calling:
phpunit
EOT
);
}

0 comments on commit cf13db9

Please sign in to comment.