Skip to content

Commit df56884

Browse files
committed
Fix typo
1 parent 395b450 commit df56884

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function testFirewalls()
129129
$configs[] = array_values($configDef->getArguments());
130130
}
131131

132-
// the IDs of the services are case sensitive or insensitive depending on
132+
// the IDs of the services are case-sensitive or insensitive depending on
133133
// the Symfony version. Transform them to lowercase to simplify tests.
134134
$configs[0][2] = strtolower($configs[0][2]);
135135
$configs[2][2] = strtolower($configs[2][2]);

src/Symfony/Component/CssSelector/Tests/XPath/TranslatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public static function getHtmlIdsTestData()
277277
['div[foobar~="cd"]', []],
278278
['*[lang|="En"]', ['second-li']],
279279
['[lang|="En-us"]', ['second-li']],
280-
// Attribute values are case sensitive
280+
// Attribute values are case-sensitive
281281
['*[lang|="en"]', []],
282282
['[lang|="en-US"]', []],
283283
['*[lang|="e"]', []],
@@ -334,7 +334,7 @@ public static function getHtmlIdsTestData()
334334
['* :root', []],
335335
['*:contains("link")', ['html', 'nil', 'outer-div', 'tag-anchor', 'nofollow-anchor']],
336336
[':CONtains("link")', ['html', 'nil', 'outer-div', 'tag-anchor', 'nofollow-anchor']],
337-
['*:contains("LInk")', []], // case sensitive
337+
['*:contains("LInk")', []], // case-sensitive
338338
['*:contains("e")', ['html', 'nil', 'outer-div', 'first-ol', 'first-li', 'paragraph', 'p-em']],
339339
['*:contains("E")', []], // case-sensitive
340340
['.a', ['first-ol']],

src/Symfony/Component/DependencyInjection/Tests/ContainerBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,8 +1699,8 @@ public function testCaseSensitivity()
16991699

17001700
$container->compile();
17011701

1702-
$this->assertNotSame($container->get('foo'), $container->get('fOO'), '->get() returns the service for the given id, case sensitively');
1703-
$this->assertSame($container->get('fOO')->Foo->foo, $container->get('foo'), '->get() returns the service for the given id, case sensitively');
1702+
$this->assertNotSame($container->get('foo'), $container->get('fOO'), '->get() returns the service for the given id, case-sensitively');
1703+
$this->assertSame($container->get('fOO')->Foo->foo, $container->get('foo'), '->get() returns the service for the given id, case-sensitively');
17041704
}
17051705

17061706
public function testParameterWithMixedCase()

src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ public function testCaseSensitivity()
223223
$sc->set('Foo', $foo2 = new \stdClass());
224224

225225
$this->assertSame(['service_container', 'foo', 'Foo'], $sc->getServiceIds());
226-
$this->assertSame($foo1, $sc->get('foo'), '->get() returns the service for the given id, case sensitively');
227-
$this->assertSame($foo2, $sc->get('Foo'), '->get() returns the service for the given id, case sensitively');
226+
$this->assertSame($foo1, $sc->get('foo'), '->get() returns the service for the given id, case-sensitively');
227+
$this->assertSame($foo2, $sc->get('Foo'), '->get() returns the service for the given id, case-sensitively');
228228
}
229229

230230
public function testGetThrowServiceNotFoundException()

src/Symfony/Component/ErrorHandler/DebugClassLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ public function __construct(callable $classLoader)
158158
$test = realpath($dir.$test);
159159

160160
if (false === $test || false === $i) {
161-
// filesystem is case sensitive
161+
// filesystem is case-sensitive
162162
self::$caseCheck = 0;
163163
} elseif (str_ends_with($test, $file)) {
164-
// filesystem is case insensitive and realpath() normalizes the case of characters
164+
// filesystem is case-insensitive and realpath() normalizes the case of characters
165165
self::$caseCheck = 1;
166166
} elseif ('Darwin' === \PHP_OS_FAMILY) {
167-
// on MacOSX, HFS+ is case insensitive but realpath() doesn't normalize the case of characters
167+
// on MacOSX, HFS+ is case-insensitive but realpath() doesn't normalize the case of characters
168168
self::$caseCheck = 2;
169169
} else {
170170
// filesystem case checks failed, fallback to disabling them

src/Symfony/Component/ErrorHandler/Tests/DebugClassLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function testFileCaseMismatch()
8787
$this->expectException(\RuntimeException::class);
8888
$this->expectExceptionMessage('Case mismatch between class and real file names');
8989
if (!file_exists(__DIR__.'/Fixtures/CaseMismatch.php')) {
90-
$this->markTestSkipped('Can only be run on case insensitive filesystems');
90+
$this->markTestSkipped('Can only be run on case-insensitive filesystems');
9191
}
9292

9393
class_exists(Fixtures\CaseMismatch::class, true);

src/Symfony/Component/ErrorHandler/Tests/ErrorEnhancer/ClassNotFoundErrorEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function testEnhanceWithFatalError()
156156
public function testCannotRedeclareClass()
157157
{
158158
if (!file_exists(__DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP')) {
159-
$this->markTestSkipped('Can only be run on case insensitive filesystems');
159+
$this->markTestSkipped('Can only be run on case-insensitive filesystems');
160160
}
161161

162162
require_once __DIR__.'/../FIXTURES2/REQUIREDTWICE.PHP';

src/Symfony/Component/ErrorHandler/Tests/ErrorEnhancer/UndefinedFunctionErrorEnhancerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function testEnhance(string $originalMessage, string $enhancedMessage)
2828
$error = $enhancer->enhance(new \Error($originalMessage));
2929

3030
$this->assertInstanceOf(UndefinedFunctionError::class, $error);
31-
// class names are case insensitive and PHP do not return the same
31+
// class names are case-insensitive and PHP do not return the same
3232
$this->assertSame(strtolower($enhancedMessage), strtolower($error->getMessage()));
3333
$this->assertSame(realpath(__FILE__), $error->getFile());
3434
$this->assertSame($expectedLine, $error->getLine());

src/Symfony/Component/HttpFoundation/Tests/HeaderBagTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testGet()
9292
{
9393
$bag = new HeaderBag(['foo' => 'bar', 'fuzz' => 'bizz']);
9494
$this->assertEquals('bar', $bag->get('foo'), '->get return current value');
95-
$this->assertEquals('bar', $bag->get('FoO'), '->get key in case insensitive');
95+
$this->assertEquals('bar', $bag->get('FoO'), '->get key in case-insensitive');
9696
$this->assertEquals(['bar'], $bag->all('foo'), '->get return the value as array');
9797

9898
// defaults

src/Symfony/Component/Uid/AbstractUid.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static function fromRfc4122(string $uid): static
8787
abstract public function toBinary(): string;
8888

8989
/**
90-
* Returns the identifier as a base58 case sensitive string.
90+
* Returns the identifier as a base58 case-sensitive string.
9191
*
9292
* @example 2AifFTC3zXgZzK5fPrrprL (len=22)
9393
*/
@@ -97,7 +97,7 @@ public function toBase58(): string
9797
}
9898

9999
/**
100-
* Returns the identifier as a base32 case insensitive string.
100+
* Returns the identifier as a base32 case-insensitive string.
101101
*
102102
* @see https://tools.ietf.org/html/rfc4648#section-6
103103
*
@@ -120,7 +120,7 @@ public function toBase32(): string
120120
}
121121

122122
/**
123-
* Returns the identifier as a RFC4122 case insensitive string.
123+
* Returns the identifier as a RFC4122 case-insensitive string.
124124
*
125125
* @see https://tools.ietf.org/html/rfc4122#section-3
126126
*

0 commit comments

Comments
 (0)