File: T377912TestCase.php

package info (click to toggle)
mediawiki 1%3A1.43.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 417,464 kB
  • sloc: php: 1,062,949; javascript: 664,290; sql: 9,714; python: 5,458; xml: 3,489; sh: 1,131; makefile: 64
file content (28 lines) | stat: -rw-r--r-- 840 bytes parent folder | download
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
<?php

declare( strict_types = 1 );

namespace Wikimedia\Tests\Message;

use LogicException;

/**
 * This class is part of a test for T377912,
 * where ScalarParam inappropriately tried to load a message param as a class.
 *
 * The class itself is irrelevant,
 * but any attempt to load it will trigger the LogicException below.
 * Mentioning the class as T377912TestCase::class is fine (does not trigger autoloading);
 * the test passes if ScalarParam does not try to load the param as a class
 * (e.g. by passing it into is_callable()).
 *
 * The file / class is called *TestCase so that it is allowed in the PHPUnit directory
 * without PHPUnit trying to load it automatically (as it would for T377912Test).
 *
 * @license GPL-2.0-or-later
 */
class T377912TestCase {

}

throw new LogicException( 'This file should never be loaded!' );