Phalcon\Test\Unit\VersionTest::testVersionConstants PHP Method

testVersionConstants() public method

Tests the constants of the class
Since: 2014-09-04
Author: Nikolaos Dimopoulos ([email protected])
    public function testVersionConstants()
    {
        $this->specify("VERSION_MAJOR does not return 0", function () {
            expect(Version::VERSION_MAJOR)->equals(0);
        });
        $this->specify("VERSION_MEDIUM does not return 1", function () {
            expect(Version::VERSION_MEDIUM)->equals(1);
        });
        $this->specify("VERSION_MINOR does not return 2", function () {
            expect(Version::VERSION_MINOR)->equals(2);
        });
        $this->specify("VERSION_SPECIAL does not return 3", function () {
            expect(Version::VERSION_SPECIAL)->equals(3);
        });
        $this->specify("VERSION_SPECIAL_NUMBER does not return 4", function () {
            expect(Version::VERSION_SPECIAL_NUMBER)->equals(4);
        });
    }