1<?php
2class OutputTestCase extends PHPUnit_Framework_TestCase
3{
4    public function testExpectOutputStringFooActualFoo()
5    {
6        $this->expectOutputString('foo');
7        print 'foo';
8    }
9
10    public function testExpectOutputStringFooActualBar()
11    {
12        $this->expectOutputString('foo');
13        print 'bar';
14    }
15
16    public function testExpectOutputRegexFooActualFoo()
17    {
18        $this->expectOutputRegex('/foo/');
19        print 'foo';
20    }
21
22    public function testExpectOutputRegexFooActualBar()
23    {
24        $this->expectOutputRegex('/foo/');
25        print 'bar';
26    }
27}
28