f-oris / easy-sdk-develop
A library for easy sdk develop.
2.0.2
2021-04-23 13:49 UTC
Requires
- php: >=5.5
- ext-json: *
- f-oris/easy-sdk-framework: ^2.0
- mikey179/vfsstream: ^1.6
- mockery/mockery: ^0.9|^1.0
- phpunit/phpunit: ^4.0|^5.0|^6.0|^7.0|^8.0
- symfony/var-dumper: ^3.0|^4.0|^5.0
This package is auto-updated.
Last update: 2024-12-23 22:12:15 UTC
README
Easy sdk 开发辅助扩展包,目前主要为自定义sdk组件扩展包提供独立的测试环境
功能
- 为自定义sdk组件扩展包提供独立的测试环境
- 增加ide-helper相应指令,方便开发人员进行联调开发
安装
通过composer引入扩展包
composer require f-oris/easy-sdk-develop --dev
使用
模拟sdk运行环境
模拟sdk运行环境,获取app实例,在实际组件包测试中,可通过该app实例测试加载自定义组件包,获取组件实例并进行组件测试
<?php namespace Foris\Easy\Sdk\Develop\Tests; /** * Class TestCase */ class TestCase extends \Foris\Easy\Sdk\Develop\TestCase { /** * Test get demo application instance. */ public function testGetDemoApplicationInstance() { $this->assertInstanceOf('Foris\Demo\Sdk\Application', $this->app()); } }
License
MIT License
Copyright (c) 2019-present F.oris us@f-oris.me