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

Get the stylesheet list.
public getStyleSheets ( ) : array
Результат array
Пример #1
0
 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());
 }