上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 76 下一页
摘要: 先来张图感受一下: 安装oh my zsh: 1、克隆这个项目到本地(前提是你得有装git) git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh 2、创建一个zsh的配置文件。注意:如果你已经有一个~/.zshrc文件 阅读全文
posted @ 2017-04-28 11:18 浮尘微光 阅读(2140) 评论(0) 推荐(0)
摘要: 今天咋服务器上敲了一个 crontab 命令(没加-e ,也没加-l, 更没加 -r) 但是竟然神奇的crontab全部被清除了。 心中一万只CN🐴 从心中飞奔而过,。,。。。。 痛定思痛之后,才想起来crontab一定要做好备份,要不然数据丢了后悔都来不及! vim bak.sh 阅读全文
posted @ 2017-04-27 15:21 浮尘微光 阅读(1450) 评论(0) 推荐(0)
摘要: //调用 $dir = '/Users/xxx/www'; $exceptFolders = array('view','test'); $exceptFiles = array('BaseController.php','LogController.php'); $files = getFilesFromFolder($dir,$exceptFolders,$exceptFiles); pri... 阅读全文
posted @ 2017-04-27 09:44 浮尘微光 阅读(913) 评论(0) 推荐(0)
摘要: spl_autoload_register(PHP 5 >= 5.1.2) spl_autoload_register — 注册__autoload()函数 说明bool spl_autoload_register ([ callback $autoload_function ] )将函数注册到SP 阅读全文
posted @ 2017-04-26 11:24 浮尘微光 阅读(268) 评论(0) 推荐(0)
摘要: 【http://www.phpunit.cn/manual/5.7/zh_cn/appendixes.configuration.html】 PHPUnit <phpunit> 元素的属性用于配置 PHPUnit 的核心功能。 <phpunit xmlns:xsi="http://www.w3.or 阅读全文
posted @ 2017-04-26 10:00 浮尘微光 阅读(368) 评论(0) 推荐(0)
摘要: 【http://www.phpunit.cn/manual/5.7/zh_cn/appendixes.annotations.html】 所谓标注,是指某些编程语言中允许加在源代码中的一种特殊格式的语法元数据。PHP 并没有专门的语言特性来支持对源代码进行标注,然而 PHP 社区早已经形成惯例,通过 阅读全文
posted @ 2017-04-26 09:59 浮尘微光 阅读(366) 评论(0) 推荐(0)
摘要: 【http://www.phpunit.cn/manual/5.7/zh_cn/appendixes.assertions.html】 本附录列举可用的各种断言方法。 assertArrayHasKey() assertArrayHasKey(mixed $key, array $array[, s 阅读全文
posted @ 2017-04-26 09:57 浮尘微光 阅读(1449) 评论(0) 推荐(0)
摘要: 一、PHPUnit是什么? 1、它是一款轻量级的PHP测试框架,地址:http://www.phpunit.cn 2、手册:http://www.phpunit.cn/manual/5.7/zh_cn/installation.html 二、为什么要用PHPUnit? 1、可以通过命令操控测试脚本 阅读全文
posted @ 2017-04-25 18:46 浮尘微光 阅读(10120) 评论(0) 推荐(0)
摘要: PHPUnit 手册 Sebastian Bergmann 版权 © 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Sebastian Bergmann 本作品依据 Creative Commons Attribut 阅读全文
posted @ 2017-04-25 16:55 浮尘微光 阅读(486) 评论(0) 推荐(0)
摘要: 何为单元测试: 指对软件中的基本单元进行测试,如函数、方法等,以检查其返回值或行为是否符合预期;实际中软件是很复杂的,由许多组件构成,执行流程连贯在一起,要进行单元片段的测试,就需要为其提供执行上下文(或者说参数)和环境(比如打桩模拟一些对象)来运行,并监控其行为和返回值,为此我们就需要写出做这件事 阅读全文
posted @ 2017-04-25 16:46 浮尘微光 阅读(1146) 评论(0) 推荐(0)
上一页 1 ··· 53 54 55 56 57 58 59 60 61 ··· 76 下一页