We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a68d81b commit ae83e89Copy full SHA for ae83e89
tests/JWTTest.php
@@ -1,7 +1,5 @@
1
<?php
2
3
-include_once 'Authentication/JWT.php';
4
-
5
class JWTTest extends PHPUnit_Framework_TestCase {
6
function testEncodeDecode() {
7
$msg = JWT::encode('abc', 'my_key');
tests/autoload.php.dist
@@ -0,0 +1,17 @@
+<?php
+
+// if the library is the project, try to use the composer's autoload for the tests
+$composerAutoload = __DIR__ . '/../vendor/autoload.php';
+if (is_file($composerAutoload)) {
+ include $composerAutoload;
8
+} else {
9
+ die('Unable to find autoload.php file, please use composer to load dependencies:
10
11
+wget http://getcomposer.org/composer.phar
12
+php composer.phar install
13
14
+Visit http://getcomposer.org/ for more information.
15
16
+');
17
+}
0 commit comments