summaryrefslogtreecommitdiffstats
path: root/tests/JWTTest.php
diff options
context:
space:
mode:
authorAnant Narayanan <anant@kix.in>2012-12-31 15:50:34 -0800
committerAnant Narayanan <anant@kix.in>2012-12-31 15:50:34 -0800
commit872d372ca79bc44ef358af2b8c13c3256c71e420 (patch)
tree8d41fd1b3c399999050cdad4a3c8078683b742d8 /tests/JWTTest.php
parent06fb98ebaebc7effdb843125b008fe8fe5bde476 (diff)
downloadphp-jwt-872d372ca79bc44ef358af2b8c13c3256c71e420.zip
php-jwt-872d372ca79bc44ef358af2b8c13c3256c71e420.tar.gz
php-jwt-872d372ca79bc44ef358af2b8c13c3256c71e420.tar.bz2
Update tests to latest phpunit
Diffstat (limited to 'tests/JWTTest.php')
-rw-r--r--tests/JWTTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/JWTTest.php b/tests/JWTTest.php
index 4549f1b..caac717 100644
--- a/tests/JWTTest.php
+++ b/tests/JWTTest.php
@@ -1,6 +1,8 @@
<?php
-class JWTTests extends PHPUnit_Framework_TestCase {
+include_once 'JWT.php';
+
+class JWTTest extends PHPUnit_Framework_TestCase {
function testEncodeDecode() {
$msg = JWT::encode('abc', 'my_key');
$this->assertEquals(JWT::decode($msg, 'my_key'), 'abc');
@@ -29,3 +31,5 @@ class JWTTests extends PHPUnit_Framework_TestCase {
JWT::jsonDecode('this is not valid JSON string');
}
}
+
+?>