summaryrefslogtreecommitdiff
path: root/libs/jsonrpc/tests/Response/HeaderMockTest.php
blob: cbeb7388815b926799db0e83faae5b5d72df55d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace JsonRPC\Response;

use PHPUnit_Framework_TestCase;

require_once __DIR__.'/../../../../vendor/autoload.php';

function header($value)
{
    HeaderMockTest::$functions->header($value);
}

abstract class HeaderMockTest extends PHPUnit_Framework_TestCase
{
    public static $functions;

    public function setUp()
    {
        self::$functions = $this
            ->getMockBuilder('stdClass')
            ->setMethods(array('header'))
            ->getMock();
    }
}