Phalcon\Test\Unit\Text\TextIncrementTest::testTextIncrementStringWithUnderscore PHP Method

testTextIncrementStringWithUnderscore() public method

Tests the increment function for a string with underscore
Since: 2014-09-29
Author: Nikolaos Dimopoulos ([email protected])
    public function testTextIncrementStringWithUnderscore()
    {
        $this->specify("increment does not increment a string with an underscore", function () {
            $source = 'file_';
            $expected = 'file_1';
            $actual = Text::increment($source);
            expect($actual)->equals($expected);
        });
    }