[ 源代码: php-mock ]
软件包:php-mock(2.5.0-1)
试制(Experimental)软件包
警告:这个软件包来自于 experimental 发行版。这表示它很有可能表现出不稳定或者出现 bug ,甚至是导致资料损失。请务必在使用之前查阅 changelog 以及其他潜在的文档。
mock built-in PHP functions
PHP-Mock is a testing library which mocks non deterministic built-in PHP functions like time() or rand(). This is achieved by PHP's namespace fallback policy. Therefore it is required to be in a non global namespace context and call the function unqualified.
PHP-Mock has integrations for PHPUnit, Mockery, and Prophecy (phpspec).
其他与 php-mock 有关的软件包
|
|
|
|
-
- dep: php-common
- PHP 包的通用文件
-
- dep: php-text-template
- Simple template engine
-
- sug: php-mock-phpunit
- mock built-in PHP functions with PHPUnit