diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-02-26 11:36:39 +0100 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-02-26 11:36:39 +0100 |
commit | de6b82947d0f3f6988be9906b0ac0c2faa052f15 (patch) | |
tree | 6c2e3a9cce374cadcd78e188714b713deab44da4 /tests/lib/SimpleSAML/Utils/RandomTest.php | |
parent | d40830712504ecab524f744bdccc911cf215809f (diff) | |
download | simplesamlphp-de6b82947d0f3f6988be9906b0ac0c2faa052f15.zip simplesamlphp-de6b82947d0f3f6988be9906b0ac0c2faa052f15.tar.gz simplesamlphp-de6b82947d0f3f6988be9906b0ac0c2faa052f15.tar.bz2 |
Move RandomTest to SimpleSAML\Test\Utils\RandomTest.
Diffstat (limited to 'tests/lib/SimpleSAML/Utils/RandomTest.php')
-rw-r--r-- | tests/lib/SimpleSAML/Utils/RandomTest.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/lib/SimpleSAML/Utils/RandomTest.php b/tests/lib/SimpleSAML/Utils/RandomTest.php index fe82f38..9f2f638 100644 --- a/tests/lib/SimpleSAML/Utils/RandomTest.php +++ b/tests/lib/SimpleSAML/Utils/RandomTest.php @@ -1,18 +1,26 @@ <?php +namespace SimpleSAML\Test\Utils; + +use SimpleSAML\Utils\Random; /** * Tests for SimpleSAML\Utils\Random. */ -class RandomTest extends PHPUnit_Framework_TestCase +class RandomTest extends \PHPUnit_Framework_TestCase { + /** + * Test for SimpleSAML\Utils\Random::generateID(). + * + * @covers SimpleSAML\Utils\Random::generateID + */ public function testGenerateID() { // check that it always starts with an underscore - $this->assertStringStartsWith('_', SimpleSAML\Utils\Random::generateID()); + $this->assertStringStartsWith('_', Random::generateID()); // check the length - $this->assertEquals(SimpleSAML\Utils\Random::ID_LENGTH, strlen(SimpleSAML\Utils\Random::generateID())); + $this->assertEquals(Random::ID_LENGTH, strlen(Random::generateID())); } } |