PEAR2_Services_LinkbackPEAR2_Services_Linkback-0.2.1/tests/PEAR2/Services/Linkback/Server/ResponderTest.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
namespace PEAR2\Services\Linkback\Server;

class ResponderTest extends \PHPUnit_Framework_TestCase
{
    /**
     * separate process is needed for headers
     *
     * @runInSeparateProcess
     * @outputBuffering enabled
     */
    public function testSendOutput()
    {
        $resp = new Responder\Pingback();
        $resp->sendOutput('foo');
        //TODO: check for headers
        $this->expectOutputString('foo');
    }

}

?>
EOF