ImboUnitTest\Storage\FilesystemTest::testStoreToUnwritablePath PHP Method

testStoreToUnwritablePath() public method

    public function testStoreToUnwritablePath()
    {
        $image = $this->getMock('Imbo\\Image\\ImageInterface');
        $dir = 'unwritableDirectory';
        // Create the virtual directory with no permissions
        vfsStream::setup($dir, 0);
        $driver = new Filesystem(['dataDir' => vfsStream::url($dir)]);
        $driver->store($this->user, $this->imageIdentifier, $image);
    }