public function testUpdateContentPhpFileWithNoHeader()
{
$meta = $this->getMetaForPhp();
$input = <<<'EOT'
<?php
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.
*
* (c) 2009-2014 You <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
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));
}