Example #1
0
<?php

use Phramework\Testphase\Testphase;
use Phramework\Testphase\TestParser;
$settings = (include __DIR__ . '/../settings.php');
Testphase::setBase($settings['base']);
TestParser::addGlobal('randInteger10', rand(1, 10));
TestParser::addGlobal('headerRequestContentType', 'Content-Type: application/json');
TestParser::addGlobal('headerRequestAccept', 'Accept: application/json');
TestParser::addGlobal('headerResponseContentType', 'application/json;charset=utf-8');
Example #2
0
 /**
  * Sort TestParsers ascending
  * @param \Phramework\Testphase\TestParser $a
  * @param \Phramework\Testphase\TestParser $b
  * @return int Returns 1 if order of first TestParser is larger
  */
 public static function sortTestParser(TestParser $a, TestParser $b)
 {
     return $a->getMeta()->order < $b->getMeta()->order ? -1 : 1;
 }