我正在用 phpunit 编写测试,并且时不时地我必须做一个
var_dump($this->getRequest()->getBody())
这一切都很好而且很花哨,但是当我这样做时在终端:
phpunit application/modules/account/ContactControllerTest.php
我得到以下输出:
string(2319) "<!DOCTYPE html><!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]--><!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]--><!--[if IE 8]><html class="no-js lt-ie9"><![endif]--><!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]--><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" ><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" ><meta name="apple-mobile-web-app-capable" content="yes" "...
...
那不是 2319 个字符.... 它更像是 516.... 我的其余内容在哪里?是的,我的终端开启了无限滚动。