Mmoreram\PHPFormatter\Tests\Fixer\EmptyHeaderFixerTest::testFix PHP Method

testFix() public method

Test fixer.
public testFix ( )
    public function testFix()
    {
        $data = "<?php\n\nnamespace 'App';";
        $header = '';
        $fixedDataExpected = "<?php\n\nnamespace 'App';";
        $headerFixer = new HeaderFixer($header);
        $fixedData = $headerFixer->fix($data);
        $fixedData = $headerFixer->fix($fixedData);
        $this->assertEquals($fixedDataExpected, $fixedData);
    }
EmptyHeaderFixerTest