webnazakazku / mango-tester-http-mocks
Fund package maintenance!
petrparolek
v0.5
2024-11-11 21:32 UTC
Requires
- php: >=8.1
- nette/http: ~3.3.0
Requires (Dev)
- contributte/qa: ^0.3
- phpstan/phpstan: ^1.0
- webnazakazku/mango-tester-infrastructure: ^0.6
This package is auto-updated.
Last update: 2024-12-11 22:20:13 UTC
README
Installation
The recommended way to install is via Composer:
composer require webnazakazku/mango-tester-http-mocks --dev
composer require dg/bypass-finals --dev
Usage
tests/config/tests.neon
extensions: mango.tester.httpMock: Webnazakazku\MangoTester\HttpMocks\Bridges\Infrastructure\HttpExtension mango.tester.httpMock: baseUrl: 'https://test.dev' sessionMock: true #or false
tests/bpotstrap.php
<?php declare(strict_types = 1); require __DIR__ . '/../vendor/autoload.php'; DG\BypassFinals::enable(); //required $configurator = new Nette\Bootstrap\Configurator(); ...