Skip to content

Commit

Permalink
Bootstrap the test process. Updated composer to require Symfony, whic…
Browse files Browse the repository at this point in the history
…h has the PHP specification in it (>=5.5.9).
  • Loading branch information
frodosghost committed Jan 29, 2016
1 parent f67ac28 commit 80512a5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

if (!@include __DIR__ . '/../vendor/autoload.php') {
die(<<<'EOT'
You must set up the project dependencies, run the following commands:
curl -s http://getcomposer.org/installer | php
php composer.phar install

EOT
);
}

$loader = require dirname(__DIR__).'/vendor/autoload.php';
$loader->add('Auth0\\JWTAuthBundle\\', __DIR__);
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

"require": {
"php": ">=5.3.3",
"symfony/symfony": "~3.0",
"auth0/auth0-php": "~3.0"
},

Expand Down
15 changes: 15 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="JWTAuthBundle Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 80512a5

Please sign in to comment.