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

testTextIncrementStringWithSpace() public method

Tests the increment function for a string with a space at the end
Since: 2014-09-29
Author: Nikolaos Dimopoulos ([email protected])
    public function testTextIncrementStringWithSpace()
    {
        $this->specify("increment does not increment a string with a space at the end", function () {
            $source = 'file ';
            $expected = 'file _1';
            $actual = Text::increment($source);
            expect($actual)->equals($expected);
        });
    }