mirror of
http://124.126.16.154:8888/singularity/hdk-skeleton.git
synced 2026-01-15 03:55:07 +08:00
@@ -23,3 +23,4 @@ parameters:
|
||||
- '#Call to an undefined method Hyperf\\Contract\\SessionInterface::isValidId\(\).#'
|
||||
- '#Call to an undefined method LightSaml\\Model\\Protocol\\SamlMessage::setInResponseTo\(\).#'
|
||||
- '#Class App\\Constants\\ErrorCode not found.#'
|
||||
- '#Undefined variable: \$this#'
|
||||
@@ -12,12 +12,12 @@ declare(strict_types=1);
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use function Hyperf\Config\config;
|
||||
use Hyperf\Testing\Client;
|
||||
use Lmc\HttpConstants\Header;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Singularity\HDK\Core\Enumerations\Http\Header\RFCs\RFC7617;
|
||||
|
||||
use function Hyperf\Config\config;
|
||||
use function Hyperf\Support\make;
|
||||
|
||||
/**
|
||||
@@ -35,13 +35,19 @@ abstract class HttpTestCase extends TestCase
|
||||
{
|
||||
protected Client $client;
|
||||
|
||||
public function __construct($name = null, array $data = [], $dataName = '')
|
||||
public function __construct(?string $name = null)
|
||||
{
|
||||
parent::__construct($name, $data, $dataName);
|
||||
parent::__construct($name);
|
||||
$this->client = make(Client::class);
|
||||
}
|
||||
|
||||
public function __call($name, $arguments)
|
||||
/**
|
||||
* @param string $name
|
||||
* @param array<int, mixed> $arguments
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function __call(string $name, array $arguments): array
|
||||
{
|
||||
$uri = $arguments[0];
|
||||
$data = $arguments[1] ?? [];
|
||||
|
||||
Reference in New Issue
Block a user