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