Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 433 / Issue433Test.php
diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php b/vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.php
new file mode 100644 (file)
index 0000000..e0a91b3
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+class Issue433Test 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');
+    }
+}