Kraken\_Unit\Filesystem\FilesystemTest::testApiRead_ThrowsException_WhenReadWasNotSuccessful PHP Метод

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

    public function testApiRead_ThrowsException_WhenReadWasNotSuccessful()
    {
        $path = 'path';
        $ex = null;
        $this->expect('read', [$path])->willReturn(false);
        try {
            $this->fs->read($path);
        } catch (Exception $ex) {
        }
        $this->assertInstanceOf(ReadException::class, $ex);
        $this->assertSame(null, $ex->getPrevious());
    }
FilesystemTest