public function testStyleSheets() { $view = new View(); $styleOne = 'styleOne.js'; $styleTwo = 'styleTwo.js'; $styleThree = 'styleThree.js'; $view->appendStyleSheet($styleOne); $view->prependStyleSheet($styleTwo); $view->appendStyleSheet($styleThree); $stylesArray = $view->getStyleSheets(); $expectedArray = [$styleTwo, $styleOne, $styleThree]; $this->assertSame($expectedArray, $stylesArray); $html = ''; foreach ($expectedArray as $s) { $html .= '<link rel="stylesheet" type="text/css" href="' . $s . '"/>' . "\n"; } $this->assertSame($html, $view->getStyleSheetsHtml()); }