rector/tests/bootstrap.php

21 lines
419 B
PHP
Raw Normal View History

<?php
declare(strict_types=1);
2017-11-10 23:14:17 +01:00
use Rector\Core\Stubs\PHPStanStubLoader;
use Tracy\Debugger;
2019-10-04 14:55:26 +02:00
2017-11-10 23:14:17 +01:00
require_once __DIR__ . '/../vendor/autoload.php';
// silent deprecations, since we test them
error_reporting(E_ALL ^ E_DEPRECATED);
2018-04-02 00:32:51 +02:00
// performance boost
2017-11-10 23:15:35 +01:00
gc_disable();
2019-10-04 14:55:26 +02:00
$phpStanStubLoader = new PHPStanStubLoader();
$phpStanStubLoader->loadStubs();
// make dump() useful and not nest infinity spam
Debugger::$maxDepth = 2;