0
テストケースのコントローラアクションからのhtml/xml出力をエコーする方法はありますか?私は実際の例外が何であるかわからないZend_Test_PHPUnit例外/出力の出力方法は?
test# /usr/local/bin/phpunit --verbose Controllers_UserControllerTest.php
PHPUnit 3.6.10 by Sebastian Bergmann.
F
Time: 0 seconds, Memory: 12.50Mb
There was 1 failure:
1) Controllers_UserControllerTest::testCreateAccountIsASuccessfulRequest
Failed asserting that true is false.
/path/to/tests/Controllers/UserControllerTest.php:17
/usr/local/bin/phpunit:46
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
test#
:
public function testCreateAccountIsASuccessfulRequest()
{
$this->dispatch('/v2/user/create-account');
$this->assertFalse($this->response->isException());
$this->assertNotRedirect();
}
コマンドラインでこれを出力します。
は、ここに私のテストケースです。それを見る方法?また、コントローラーアクションの実際の出力を確認するにはどうすればよいですか?だから、HTML/XMLはブラウザに送信しますか?