Redaxscript\Tests\Head\LinkTest::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 */
        $link = Head\Link::getInstance();
        $link->init('prepend');
        foreach ($coreArray as $value) {
            $link->prepend($value);
        }
        foreach ($moduleArray as $key => $value) {
            $link->prependFile($value);
        }
        /* actual */
        $actual = $link;
        /* compare */
        $this->assertEquals($this->normalizeEOL($expect), $actual);
    }