Phalcon\Test\Unit\Text\TextIncrementTest::testTextIncrementStringWithDifferentSeparator PHP Метод

testTextIncrementStringWithDifferentSeparator() публичный Метод

Tests the increment function with a different separator
С версии: 2014-09-29
Автор: Nikolaos Dimopoulos ([email protected])
    public function testTextIncrementStringWithDifferentSeparator()
    {
        $this->specify("increment does not increment a string with a different separator", function () {
            $source = 'file';
            $expected = 'file-1';
            $actual = Text::increment($source, '-');
            expect($actual)->equals($expected);
        });
    }