From d90e71f85109d80b4bd51ddd7c442e810ee81697 Mon Sep 17 00:00:00 2001 From: Phan An Date: Sat, 10 Jun 2017 01:40:26 +0100 Subject: [PATCH] Add vfsStream for file system mocking --- composer.json | 3 ++- composer.lock | 52 ++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 51 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index e990ca00..3e142ad7 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,8 @@ "barryvdh/laravel-ide-helper": "^2.1", "laravel/tinker": "^1.0", "laravel/browser-kit-testing": "^1.0", - "codeclimate/php-test-reporter": "^0.4.4" + "codeclimate/php-test-reporter": "^0.4.4", + "mikey179/vfsStream": "^1.6" }, "autoload": { "classmap": [ diff --git a/composer.lock b/composer.lock index 8c3495b7..9a1e80a9 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "f57e1b0e6cecf80d68b7e8e95ecfb561", + "content-hash": "a89ed878b10fad13edf7c85c9d4fd11c", "packages": [ { "name": "aws/aws-sdk-php", @@ -3473,17 +3473,63 @@ ], "time": "2016-12-30T18:13:17+00:00" }, + { + "name": "mikey179/vfsStream", + "version": "v1.6.4", + "source": { + "type": "git", + "url": "https://github.com/mikey179/vfsStream.git", + "reference": "0247f57b2245e8ad2e689d7cee754b45fbabd592" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mikey179/vfsStream/zipball/0247f57b2245e8ad2e689d7cee754b45fbabd592", + "reference": "0247f57b2245e8ad2e689d7cee754b45fbabd592", + "shasum": "" + }, + "require": { + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.6.x-dev" + } + }, + "autoload": { + "psr-0": { + "org\\bovigo\\vfs\\": "src/main/php" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Frank Kleine", + "homepage": "http://frankkleine.de/", + "role": "Developer" + } + ], + "description": "Virtual file system to mock the real file system in unit tests.", + "homepage": "http://vfs.bovigo.org/", + "time": "2016-07-18T14:02:57+00:00" + }, { "name": "mockery/mockery", "version": "0.9.9", "source": { "type": "git", - "url": "https://github.com/padraic/mockery.git", + "url": "https://github.com/mockery/mockery.git", "reference": "6fdb61243844dc924071d3404bb23994ea0b6856" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/padraic/mockery/zipball/6fdb61243844dc924071d3404bb23994ea0b6856", + "url": "https://api.github.com/repos/mockery/mockery/zipball/6fdb61243844dc924071d3404bb23994ea0b6856", "reference": "6fdb61243844dc924071d3404bb23994ea0b6856", "shasum": "" },