diff options
Diffstat (limited to 'libs/jsonrpc/tests/Response/HeaderMockTest.php')
-rw-r--r-- | libs/jsonrpc/tests/Response/HeaderMockTest.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/jsonrpc/tests/Response/HeaderMockTest.php b/libs/jsonrpc/tests/Response/HeaderMockTest.php new file mode 100644 index 00000000..cbeb7388 --- /dev/null +++ b/libs/jsonrpc/tests/Response/HeaderMockTest.php @@ -0,0 +1,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(); + } +} |