Phalcon\Test\Unit\Text\TextRandomTest::testRandomConstants PHP Method

testRandomConstants() public method

Tests the constants for the random function
Since: 2014-09-29
Author: Nikolaos Dimopoulos ([email protected])
public testRandomConstants ( )
    public function testRandomConstants()
    {
        $this->specify("random constants are not correct", function () {
            expect(Text::RANDOM_ALNUM)->equals(0);
            expect(Text::RANDOM_ALPHA)->equals(1);
            expect(Text::RANDOM_HEXDEC)->equals(2);
            expect(Text::RANDOM_NUMERIC)->equals(3);
            expect(Text::RANDOM_NOZERO)->equals(4);
        });
    }