在 Google App Engine 的 PHP 运行时环境中,如何编写单元测试?

In the PHP runtime environment for Google App Engine, how can I write unit tests?

我有一套PHPUnit tests for an application that I am porting to App Engine. I'd like to get these running. But I'd be interested in seeing any examples of unit tests for the PHP runtime. The documentation is mum and my searches一直没用

在这种特殊情况下,我希望模拟出 User API 的部分内容。

我的 PHP-应用引擎的 GDS 库有一组单元测试。

随便看看!

https://github.com/tomwalder/php-gds

我利用模拟协议缓冲区函数来模拟来自 Google 服务的响应。

这里还有一组较小的单元测试

https://github.com/tomwalder/php-appengine-search

包含 SDK 的关键之一

google/appengine-php-sdk

希望对您有所帮助!

汤姆