public function testStackable() { $app = $this->getApp(); $stack = $this->getMockStack(); $stack->expects($this->once())->method('isStackable'); $app['stack'] = $stack; $handler = new AdminHandler($app); $handler->testStackable('koala.jpg'); }