~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/_files/OutputTestCase.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class 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
}