PHP Classes

File: web/mock/json.php

Recommend this page to a friend!
  Classes of Lukasz Cepowski   Mock HTTP Server   web/mock/json.php   Download  
File: web/mock/json.php
Role: Auxiliary script
Content type: text/plain
Description: Unit test script
Class: Mock HTTP Server
Setup and start a HTTP server for testing purposes
Author: By
Last change:
Date: 12 years ago
Size: 96 bytes
 

Contents

Class file image Download
<?php
header
('Content-Type: application/json');
echo
json_encode(array('a' => 123, 'b' => 456));