PEAR2_Services_LinkbackPEAR2_Services_Linkback-0.2.1/tests/PEAR2/Services/Linkback/Server/Callback/Base/HTTPRequestTest.php

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

class BaseTest extends \PHPUnit_Framework_TestCase
{
    public function testGetRequestNull()
    {
        $base = new \PEAR2\Services\Linkback\Server\Callback\FetchSource();
        $req = $base->getRequest();
        $this->assertInstanceOf('\HTTP_Request2', $req);
    }

    public function testGetRequestSet()
    {
        $base = new \PEAR2\Services\Linkback\Server\Callback\FetchSource();
        $req = $base->getRequest();
        $this->assertInstanceOf('\HTTP_Request2', $req);

        $req2 = $base->getRequest();
        $this->assertSame($req, $req2);
    }
}

?>
EOF