Phalcon\Test\Unit\SecurityTest::testSecurityConstants PHP Method

testSecurityConstants() public method

Tests the Security constants
Since: 2015-12-19
Author: Serghei Iakovlev ([email protected])
    public function testSecurityConstants()
    {
        $this->specify('Security constants are not correct', function () {
            expect(Security::CRYPT_DEFAULT)->equals(0);
            expect(Security::CRYPT_STD_DES)->equals(1);
            expect(Security::CRYPT_EXT_DES)->equals(2);
            expect(Security::CRYPT_MD5)->equals(3);
            expect(Security::CRYPT_BLOWFISH)->equals(4);
            expect(Security::CRYPT_BLOWFISH_A)->equals(5);
            expect(Security::CRYPT_BLOWFISH_X)->equals(6);
            expect(Security::CRYPT_BLOWFISH_Y)->equals(7);
            expect(Security::CRYPT_SHA256)->equals(8);
            expect(Security::CRYPT_SHA512)->equals(9);
        });
    }