/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php

https://bitbucket.org/alan_cordova/api-sb-map · PHP · 21 lines · 19 code · 2 blank · 0 comment · 0 complexity · 750347290da446de684515ddd96b7326 MD5 · raw file

  1. <?php
  2. class Issue433Test extends PHPUnit_Framework_TestCase
  3. {
  4. public function testOutputWithExpectationBefore()
  5. {
  6. $this->expectOutputString('test');
  7. print 'test';
  8. }
  9. public function testOutputWithExpectationAfter()
  10. {
  11. print 'test';
  12. $this->expectOutputString('test');
  13. }
  14. public function testNotMatchingOutput()
  15. {
  16. print 'bar';
  17. $this->expectOutputString('foo');
  18. }
  19. }