Skip to content

Commit 68014bb

Browse files
committed
Refactor test descriptions to remove "Red Phase" terminology for clarity
1 parent 45d4601 commit 68014bb

19 files changed

Lines changed: 19 additions & 19 deletions

‎tests/Internal/Ast/ContractVisitorWriteContextAndDuplicationTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use TypePHP\Exception\TypeError;
88
use TypePHP\Internal\Io\StreamWrapper;
99

10-
describe('ContractVisitor Write-Context & Target Duplication (Red Phase)', function () {
10+
describe('ContractVisitor Write-Context & Target Duplication', function () {
1111
describe('1. Foreach & By-Ref ArrayItem Write Context with StaticPropertyFetch', function () {
1212
test('does not wrap foreach valueVar, keyVar, destructured target, or array-dim static property in checkStaticProperty', function () {
1313
$source = <<<'PHP'

‎tests/Internal/Ast/Elimination/ArrayLiteralSpreadSoundnessTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use TypePHP\Internal\Ast\Elimination\StaticTypeEvaluator;
2121
use TypePHP\Internal\Io\StreamWrapper;
2222

23-
describe('ArrayLiteralEvaluator Spread (...$x) Soundness (Red Phase)', function () {
23+
describe('ArrayLiteralEvaluator Spread (...$x) Soundness', function () {
2424
describe('1. Bare Identifiers (list, non-empty-array, non-empty-list)', function () {
2525
test('does not eliminate spread expressions against list, non-empty-array, or non-empty-list', function () {
2626
$spreadExpr = new Array_([

‎tests/Internal/Ast/Elimination/ConstantAndEnumSoundnessTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ enum SoundnessEnumWithConst: string
4747
case Active = 'active';
4848
}
4949

50-
describe('ConstantAndEnumEvaluator Soundness (Red Phase)', function () {
50+
describe('ConstantAndEnumEvaluator Soundness', function () {
5151
describe('1. Cross-Class Constant & Wildcard Isolation', function () {
5252
test('does not eliminate ClassConstFetch when expression class differs from ConstTypeNode class', function () {
5353
$fetch = new ClassConstFetch(new Name('User'), new Identifier('STATUS_PAID'));

‎tests/Internal/Ast/ReturnVarDoubleWrappingTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use TypePHP\Internal\Io\StreamWrapper;
99
use TypePHP\Internal\Util\Config;
1010

11-
describe('Inline @var on return vs FunctionContractInjector (Red Phase)', function () {
11+
describe('Inline @var on return vs FunctionContractInjector', function () {
1212
beforeEach(function () {
1313
Config::reset();
1414
StreamWrapper::reset();

‎tests/Internal/Docblock/DocblockNormalizerNestedGenericsTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use TypePHP\Internal\Docblock\DocblockExtractor;
88
use TypePHP\Internal\Docblock\DocblockNormalizer;
99

10-
describe('DocblockNormalizer Nested Angle Brackets and Callables (Issue 5 Red Phase)', function () {
10+
describe('DocblockNormalizer Nested Angle Brackets and Callables (Issue 5)', function () {
1111
describe('1. Callable Generic Parameter Preservation (<T>)', function () {
1212
test('preserves generic template <T> when auto-completing omitted return type to : mixed', function () {
1313
$doc = '/** @param callable<T>(T) $fn */';

‎tests/Internal/Io/MultiNamespaceAndEnumTraitMetadataTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use TypePHP\Tests\Fixtures\Domain\Cat;
1313
use TypePHP\Tests\Fixtures\Domain\Dog;
1414

15-
describe('Multi-Namespace, Enum, and Trait Metadata Seeding (Red Phase)', function () {
15+
describe('Multi-Namespace, Enum, and Trait Metadata Seeding', function () {
1616
beforeEach(function () {
1717
Config::reset();
1818
StreamWrapper::reset();

‎tests/Internal/Io/StreamWrapperExceptionSafetyTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use TypePHP\Internal\Io\StreamWrapper;
1010
use TypePHP\Internal\Util\Config;
1111

12-
describe('StreamWrapper Exception Safety (Red Phase)', function () {
12+
describe('StreamWrapper Exception Safety', function () {
1313
beforeEach(function () {
1414
Config::reset();
1515
StreamWrapper::reset();

‎tests/Internal/Resolver/SpecialTypeResolverUseImportsTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class UseImportCollisionTarget
1111
{
1212
}
1313

14-
describe('SpecialTypeResolver & StreamWrapper Non-Class Use Import Isolation (Red Phase)', function () {
14+
describe('SpecialTypeResolver & StreamWrapper Non-Class Use Import Isolation', function () {
1515
beforeEach(function () {
1616
SpecialTypeResolver::reset();
1717
StreamWrapper::reset();

‎tests/TypeChecking/ArraysAndShapes/CrossNamespaceImportedTypeAliasTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
});
6161
});
6262

63-
describe('2. Related Edge Cases (Expected Red Phase on v0.14.1)', function () {
63+
describe('2. Related Edge Cases', function () {
6464
test('resolves parent alias imports when referenced by a child class @phpstan-type in another namespace', function () {
6565
$child = new PaintChildTypes();
6666

‎tests/TypeChecking/ArraysAndShapes/MemberUnsetValidationTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function next(): MemberUnsetPropertyBox
8080
}
8181
}
8282

83-
describe('Member Unset Validation (Red Phase)', function () {
83+
describe('Member Unset Validation', function () {
8484
beforeEach(function () {
8585
MemberUnsetStaticBox::reset();
8686
Config::reset();

0 commit comments

Comments
 (0)