- 授权协议: GPL
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: http://tutorialzine.com/projects/testify/
- 软件文档: https://github.com/marco-fiset/Testify.php
- 官方下载: https://github.com/marco-fiset/Testify.php
软件介绍
Testify(Testify.php) 是个极小的 PHP 5.3+ 单元测试框架。
代码示例:
require 'vendor/autoload.php';
use Math\MyCalc;
use Testify\Testify;$tf = new Testify("MyCalc Test Suite");$tf->beforeEach(function($tf) {
$tf->data->calc = new MyCalc(10);});$tf->test("Testing the add() method", function($tf) {
$calc = $tf->data->calc;
$calc->add(4);
$tf->assert($calc->result() == 14);
$calc->add(-6);
$tf->assertEquals($calc->result(), 8);});$tf->test("Testing the mul() method", function($tf) {
$calc = $tf->data->calc;
$calc->mul(1.5);
$tf->assertEquals($calc->result(), 12);
$calc->mul(-1);
$tf->assertEquals($calc->result(), -12);});$tf();
代码里的世界观——通往架构师之路
余叶 / 人民邮电出版社 / 2018-11 / 59.00元
本书分为两大部分,第一部分讲述程序员在编写程序和组织代码时遇到的很多通用概念和共同问题,比如程序里的基本元素,如何面向对象,如何面向抽象编程,什么是耦合,如何进行单元测试等。第二部分讲述程序员在编写代码时都会遇到的思考和选择,比如程序员的两种工作模式,如何坚持技术成长,程序员的组织生产方法,程序员的职业生涯规划等。一起来看看 《代码里的世界观——通往架构师之路》 这本书的介绍吧!
