PHP Classes

File: TestCases/OpenTests.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid (Sharma)   PHP Microservices Framework   TestCases/OpenTests.php   Download  
File: TestCases/OpenTests.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change: QueryPlaceholder
Parameterized Param
Date: 1 month ago
Size: 1,647 bytes
 

Contents

Class file image Download
<?php

/**
 * TestCases
 * php version 8.3
 *
 * @category TestCases
 * @package Microservices
 * @author Ramesh N Jangid <[email protected]>
 * @copyright 2025 Ramesh N Jangid
 * @license MIT https://opensource.org/license/mit
 * @link https://github.com/polygoncoin/Microservices
 * @since Class available since Release 1.0.0
 */

namespace Microservices\TestCases;

if (!
defined('GET')) {
   
define('GET', __DIR__ . DIRECTORY_SEPARATOR . 'GET');
   
define('POST', __DIR__ . DIRECTORY_SEPARATOR . 'POST');
   
define('PUT', __DIR__ . DIRECTORY_SEPARATOR . 'PUT');
   
define('PATCH', __DIR__ . DIRECTORY_SEPARATOR . 'PATCH');
   
define('DELETE', __DIR__ . DIRECTORY_SEPARATOR . 'DELETE');
}

// $apiVersion = 'X-API-Version: v1.0.0';
$cacheControl = 'Cache-Control: no-cache';
// $contentType = 'Content-Type: application/x-www-form-urlencoded; charset=utf-8';
// $contentType = 'Content-Type: multipart/form-data; charset=utf-8';
$contentType = 'Content-Type: text/plain; charset=utf-8';

$defaultHeaders = [];
// $defaultHeaders[] = $apiVersion;
$defaultHeaders[] = $cacheControl;

$response = [];

$homeURL = 'http://localhost/Microservices/public_html/index.php';

$response[] = include POST . DIRECTORY_SEPARATOR . 'Registration.php';
$response[] = include POST . DIRECTORY_SEPARATOR . 'RegistrationWithAddress.php';
$response[] = include POST . DIRECTORY_SEPARATOR . 'Address.php';

$response[] = include GET . DIRECTORY_SEPARATOR . 'CategorySingle.php';
$response[] = include GET . DIRECTORY_SEPARATOR . 'Category.php';
$response[] = include GET . DIRECTORY_SEPARATOR . 'CategoryOrderBy.php';

return
$response;