Skip to content

Files

Latest commit

 

History

History
42 lines (28 loc) · 866 Bytes

readme.md

File metadata and controls

42 lines (28 loc) · 866 Bytes

Mango Tester nette/http mocks

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