Return whether or not a file is stackable.
public testStackable ( Bolt\Filesystem\Handler\FileInterface | string $filename ) : boolean | ||
$filename | Bolt\Filesystem\Handler\FileInterface | string | |
Результат | boolean |
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'); }