Skip to content
Snippets Groups Projects
Commit a12bbb15 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Add tests for SimpleSAML\Utils\Random.

parent 2566f123
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Tests for SimpleSAML\Utils\Random.
*/
class RandomTest extends PHPUnit_Framework_TestCase
{
public function testGenerateID()
{
// check that it always starts with an underscore
$this->assertStringStartsWith('_', SimpleSAML\Utils\Random::generateID());
// check the length
$this->assertEquals(SimpleSAML\Utils\Random::ID_LENGTH, strlen(SimpleSAML\Utils\Random::generateID()));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment