Redaxscript\Tests\Head\ScriptTest::testPrepend PHP Метод

testPrepend() публичный Метод

testPrepend
С версии: 3.0.0
public testPrepend ( array $coreArray = [], array $moduleArray = [], string $expect = null )
$coreArray array
$moduleArray array
$expect string
    public function testPrepend($coreArray = [], $moduleArray = [], $expect = null)
    {
        /* setup */
        $script = Head\Script::getInstance();
        $script->init('prepend');
        foreach ($coreArray as $value) {
            $script->prepend($value);
        }
        foreach ($moduleArray as $key => $value) {
            $script->prependFile($value);
        }
        /* actual */
        $actual = $script;
        /* compare */
        $this->assertEquals($this->normalizeEOL($expect), $actual);
    }