/** * */ public function testApiGetSize_ThrowsException_WhenGetSizeOnModelThrowsException() { $path = 'path'; $expected = new Exception(); $ex = null; $this->expect('getSize', [$path])->willThrow($expected); try { $this->fs->getSize($path); } catch (Exception $ex) { } $this->assertInstanceOf(ReadException::class, $ex); $this->assertSame($expected, $ex->getPrevious()); }