diff options
Diffstat (limited to 'plugins/Marketplace/tests/Framework/Mock/Client.php')
-rw-r--r-- | plugins/Marketplace/tests/Framework/Mock/Client.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/Marketplace/tests/Framework/Mock/Client.php b/plugins/Marketplace/tests/Framework/Mock/Client.php new file mode 100644 index 0000000000..fee4de1afe --- /dev/null +++ b/plugins/Marketplace/tests/Framework/Mock/Client.php @@ -0,0 +1,22 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +namespace Piwik\Plugins\Marketplace\tests\Framework\Mock; + +use Piwik\Cache\Backend\NullCache; +use Piwik\Cache\Lazy; +use Psr\Log\NullLogger; + +class Client { + + public static function build($service) + { + $environment = new Environment(); + return new \Piwik\Plugins\Marketplace\Api\Client($service, new Lazy(new NullCache()), new NullLogger(), $environment); + } +} |