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

Commit 3a03aaa

Browse files
committed
Test that it can find paths that use class consts
1 parent 97e0d5b commit 3a03aaa

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

tests/ClassThatContainsConst.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Tests;
6+
7+
class ClassThatContainsConst
8+
{
9+
public const FILE_EXISTS = 'include_me_to_prove_you_work.txt';
10+
public const FILE_DOES_NOT_EXIST = 'a_file_that_does_not_exist.php';
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Tests\ClassThatContainsConst;
6+
7+
include __DIR__ . '/' . ClassThatContainsConst::FILE_EXISTS;
8+
include_once __DIR__ . '/' . ClassThatContainsConst::FILE_EXISTS;
9+
require __DIR__ . '/' . ClassThatContainsConst::FILE_EXISTS;
10+
require_once __DIR__ . '/' . ClassThatContainsConst::FILE_EXISTS;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Tests\ClassThatContainsConst;
6+
7+
include __DIR__ . '/' . ClassThatContainsConst::FILE_DOES_NOT_EXIST;
8+
include_once __DIR__ . '/' . ClassThatContainsConst::FILE_DOES_NOT_EXIST;
9+
require __DIR__ . '/' . ClassThatContainsConst::FILE_DOES_NOT_EXIST;
10+
require_once __DIR__ . '/' . ClassThatContainsConst::FILE_DOES_NOT_EXIST;

0 commit comments

Comments
 (0)