Debian Codegraph @

tests/phpunit/unit/includes/libs/Message/T377912TestCase.php

raw symbols SCIP
1 <?php
2
3 declare( strict_types = 1 );
4
5 namespace Wikimedia\Tests\Message;
6
7 use LogicException;
8
9 /**
10 * This class is part of a test for T377912,
11 * where ScalarParam inappropriately tried to load a message param as a class.
12 *
13 * The class itself is irrelevant,
14 * but any attempt to load it will trigger the LogicException below.
15 * Mentioning the class as T377912TestCase::class is fine (does not trigger autoloading);
16 * the test passes if ScalarParam does not try to load the param as a class
17 * (e.g. by passing it into is_callable()).
18 *
19 * The file / class is called *TestCase so that it is allowed in the PHPUnit directory
20 * without PHPUnit trying to load it automatically (as it would for T377912Test).
21 *
22 * @license GPL-2.0-or-later
23 */
24 class T377912TestCase {
25
26 }
27
28 throw new LogicException( 'This file should never be loaded!' );