Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test里面的代码如何运作? #24

Open
vincentssn opened this issue Mar 4, 2015 · 2 comments
Open

test里面的代码如何运作? #24

vincentssn opened this issue Mar 4, 2015 · 2 comments

Comments

@vincentssn
Copy link

test里的代码如何配置运作?改了sdkTestBase里的token貌似还不行,能否说明一下配置步骤?

@netputer
Copy link
Owner

netputer commented Mar 4, 2015

@techotaku 看看~

@techotaku
Copy link
Contributor

测试基于phpunit框架。这个就不多说了。
需要test_helpers这个PHP扩展,你可以直接编一个试一下。
P.S. 刚看了一下,这个扩展已经被uopz取代了,我有空会更新测试代码。
如果test_helpers已经不能用,而你又急用的话,可以在安装uopz扩展之后修改一下ExitTestHelper.php,用uopz_overload(ZEND_EXIT, array('ExitTestHelper', 'exitHandler'));取代set_exit_overload('ExitTestHelper::exitHandler');
顺便感慨一下这个库是不是好久没更新了……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants