Phalcon\Test\Unit\Tag\TagLinkToTest::testLinkToWithEmptyStringAsURLAndStringAsName PHP Method

testLinkToWithEmptyStringAsURLAndStringAsName() public method

Tests linkTo with empty string as URL and string as name parameter
Since: 2014-09-29
Author: Nikolaos Dimopoulos ([email protected])
    public function testLinkToWithEmptyStringAsURLAndStringAsName()
    {
        $this->specify("linkTo with empty string as URL and string as name parameter returns invalid HTML", function () {
            Tag::resetInput();
            $url = '';
            $name = 'x_name';
            $expected = '<a href="/">x_name</a>';
            $actual = Tag::linkTo($url, $name);
            expect($actual)->equals($expected);
        });
    }