| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
fmms
13年前发布

PHP 测试框架 Codeception

Codeception 是一个全堆栈的 PHP 测试框架。Codeception is a new full-stack testing PHP framework. Inspired by BDD, it provides you absolutely new original way for writing acceptance, functional and even unit tests。

<?php  class UserControllerCest {      public $class = 'UserController';        public function createAction(CodeGuy $I)      {          $I->haveFakeClass($userController = Stub::make('UserController'));          $I->executeTestedMethodOn($userController, array('username' => 'MilesDavis', 'email' => 'miles@davis.com'))              ->seeResultEquals(true)              ->seeMethodInvoked($userController, 'renderHtml')              ->seeInDabatase('users', array('username' => 'MilesDavis'));      }  }  ?>

项目主页:http://www.open-open.com/lib/view/home/1336661936265

 本文由用户 fmms 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1336661936265.html
PHP 测试 PHP开发