]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/_files/OutputTestCase.php
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / _files / OutputTestCase.php
1 <?php
2 require_once 'PHPUnit/Extensions/OutputTestCase.php';
3
4 class OutputTestCase extends PHPUnit_Extensions_OutputTestCase
5 {
6     public function testExpectOutputStringFooActualFoo()
7     {
8         $this->expectOutputString('foo');
9         print 'foo';
10     }
11
12     public function testExpectOutputStringFooActualBar()
13     {
14         $this->expectOutputString('foo');
15         print 'bar';
16     }
17
18     public function testExpectOutputRegexFooActualFoo()
19     {
20         $this->expectOutputRegex('/foo/');
21         print 'foo';
22     }
23
24     public function testExpectOutputRegexFooActualBar()
25     {
26         $this->expectOutputRegex('/foo/');
27         print 'bar';
28     }
29 }
30 ?>