Phalcon\Test\Unit\Tag\TagTitleTest::testSetTitleSeparatorPrepend PHP Method

testSetTitleSeparatorPrepend() public method

Tests titleSeparator prepend
Since: 2012-09-05
Author: Nikolaos Dimopoulos ([email protected])
    public function testSetTitleSeparatorPrepend()
    {
        $this->specify("titleSeparator prepend returns incorrect result", function () {
            Tag::resetInput();
            Tag::setTitle('This is my title');
            Tag::setTitleSeparator('-');
            Tag::prependTitle('PhalconPHP');
            expect(Tag::getTitle())->equals("<title>PhalconPHP-This is my title</title>" . PHP_EOL);
        });
    }