Phalcon\Test\Unit\DebugTest::testShouldGetVersion PHP Method

testShouldGetVersion() public method

Tests the Debug::getVersion
Since: 2016-09-25
Author: Serghei Iakovlev ([email protected])
    public function testShouldGetVersion()
    {
        $this->specify("The getVersion doesn't work as expected", function () {
            $debug = new Debug();
            $target = '"_new"';
            $uri = '"https://docs.phalconphp.com/en/' . Version::getPart(Version::VERSION_MAJOR) . '.0.0/"';
            $version = Version::get();
            expect($debug->getVersion())->equals("<div class='version'>Phalcon Framework <a href={$uri} target={$target}>{$version}</a></div>");
        });
    }