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

Return an array with the items on the stack.
public stack ( array | string $types = [] ) : array
$types array | string
Результат array An array of items
Пример #1
0
 public function testStack()
 {
     $app = $this->getApp();
     $stack = $this->getMockStack();
     $stack->expects($this->exactly(3))->method('getList')->withConsecutive([['other', 'document']], [['other', 'document']], [[]]);
     $app['stack'] = $stack;
     $handler = new AdminHandler($app);
     $handler->stack(['other', 'document']);
     $handler->stack('other, document');
     $handler->stack('');
 }