diff --git a/tests/lib/SimpleSAML/Utils/RandomTest.php b/tests/lib/SimpleSAML/Utils/RandomTest.php index fe82f3894e419cbb67a28e9df696150fa09cd679..9f2f6381be6a1a5852810140073d1202e361423b 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())); } }