~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/Regression/GitHub/433/Issue433Test.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 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
}