www.gusucode.com > KPPW众包威客PHP开源建站系统 v3.0源码程序 > KPPW/vendor/phpunit/phpunit/tests/Regression/GitHub/445/Issue445Test.php
<?php class Issue445Test extends PHPUnit_Framework_TestCase { public function testOutputWithExpectationBefore() { $this->expectOutputString('test'); print 'test'; } public function testOutputWithExpectationAfter() { print 'test'; $this->expectOutputString('test'); } public function testNotMatchingOutput() { print 'bar'; $this->expectOutputString('foo'); } }