-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesto.php
More file actions
30 lines (26 loc) · 906 Bytes
/
Copy pathtesto.php
File metadata and controls
30 lines (26 loc) · 906 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
use Testo\Application\Config\ApplicationConfig;
use Testo\Application\Config\SuiteConfig;
use Testo\Bridge\Mockery\MockeryPlugin;
// Must run before any class is autoloaded — mirrors Tests/bootstrap.php for
// PHPUnit. Without this, Mockery cannot mock the `final` Cycle ORM
// repository classes (all 74 of them) that services in this project are
// constructed with directly, since Mockery generates a subclass of the
// target and PHP forbids subclassing final classes.
DG\BypassFinals::enable();
return new ApplicationConfig(
src: ['src'],
plugins: [new MockeryPlugin()],
suites: [
new SuiteConfig(
name: 'Unit',
location: ['Tests/Testo'],
),
// Inline tests and benchmarks embedded in source files
new SuiteConfig(
name: 'Sources',
location: ['src'],
),
],
);