webnazakazku/mango-tester-http-mocks

Fund package maintenance!
petrparolek

v0.5 2024-11-11 21:32 UTC

This package is auto-updated.

Last update: 2024-12-11 22:20:13 UTC


README

Build Status

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();
...