public function testUpdateContentPhpFileWithPreservedHeader()
{
$meta = $this->getMetaForPhp();
$input = <<<'EOT'
<?php
/*!
* This file is part of Your Package package.
*/
namespace Test;
class MetaTest
{
private $test;
public function __construct($test)
{
$this->test = $test;
}
}
EOT;
$expected = <<<'EOT'
<?php
/*!
* This file is part of Your Package package.
*/
namespace Test;
class MetaTest
{
private $test;
public function __construct($test)
{
$this->test = $test;
}
}
EOT;
$this->assertEquals(ltrim($expected), $this->helper->updateContent($meta, self::$header, $input));
}