Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 39c1abb

Browse files
committed
Add bootstrap file to test consts
1 parent 6916845 commit 39c1abb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/phpstan-testing-bootstrap.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
const FILE_EXISTS = 'include_me_to_prove_you_work.txt';
6+
const FILE_DOES_NOT_EXIST = 'a_file_that_does_not_exist.php';

tests/phpstan-testing.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ parameters:
1010
level: 9
1111
paths:
1212
- files
13+
scanDirectories:
14+
- ../src
15+
bootstrapFiles:
16+
- phpstan-testing-bootstrap.php

0 commit comments

Comments
 (0)