JoliTypo\Tests\Fixer\NoSpaceBeforeCommaTest::testSimpleString PHP Method

testSimpleString() public method

public testSimpleString ( )
    public function testSimpleString()
    {
        $fixer = new Fixer\NoSpaceBeforeComma();
        $this->assertInstanceOf('JoliTypo\\Fixer\\NoSpaceBeforeComma', $fixer);
        $this->assertEquals("Superman, you're my hero", $fixer->fix("Superman,you're my hero"));
        $this->assertEquals("Superman, you're my hero", $fixer->fix("Superman ,you're my hero"));
        $this->assertEquals("Superman, you're my hero", $fixer->fix("Superman  ,  you're my hero"));
        $this->assertEquals("F, bar", $fixer->fix("F,bar"));
        $this->assertEquals("Seule 1,7 million de personnes", $fixer->fix("Seule 1,7 million de personnes"));
    }
NoSpaceBeforeCommaTest