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

testFix() public method

Test fixer.
public testFix ( $data )
    public function testFix($data)
    {
        $header = '/**
 * This file is part of the php-formatter package
 *
 * Copyright (c) 2014 Marc Morera
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * Feel free to edit as you please, and have fun.
 *
 * @author Marc Morera <[email protected]>
 */
';
        $fixedDataExpected = '<?php

/**
 * This file is part of the php-formatter package
 *
 * Copyright (c) 2014 Marc Morera
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * Feel free to edit as you please, and have fun.
 *
 * @author Marc Morera <[email protected]>
 */

';
        $headerFixer = new HeaderFixer($header);
        $fixedData = $headerFixer->fix($data);
        $this->assertEquals($fixedDataExpected, $fixedData);
    }
HeaderFixerTest