-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Restrict the possible values for the casing options under the Portability\
NS
#5926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ public function testGetServerVersion(): void | |
->method('getServerVersion') | ||
->willReturn('1.2.3'); | ||
|
||
$connection = new Connection($driverConnection, new Converter(false, false, 0)); | ||
$connection = new Connection($driverConnection, new Converter(false, false, Converter::CASE_LOWER)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait, why did you change these tests? That shouldn't be necessary, should it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this change is not strictly required, as the previous value (0) is identical to the value provided by this constant. I made these replacements in order to be consistent with the usage of these constants, as I think this also help as an example. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, you're right. It's better this way, thanks for the explanation. Let's keep the change. |
||
|
||
self::assertSame('1.2.3', $connection->getServerVersion()); | ||
} | ||
|
@@ -27,7 +27,7 @@ public function testGetServerVersionFailsWithLegacyConnection(): void | |
{ | ||
$connection = new Connection( | ||
$this->createMock(DriverConnection::class), | ||
new Converter(false, false, 0), | ||
new Converter(false, false, Converter::CASE_LOWER), | ||
); | ||
|
||
$this->expectException(LogicException::class); | ||
|
@@ -43,7 +43,7 @@ public function testGetNativeConnection(): void | |
$driverConnection->method('getNativeConnection') | ||
->willReturn($nativeConnection); | ||
|
||
$connection = new Connection($driverConnection, new Converter(false, false, 0)); | ||
$connection = new Connection($driverConnection, new Converter(false, false, Converter::CASE_LOWER)); | ||
|
||
self::assertSame($nativeConnection, $connection->getNativeConnection()); | ||
} | ||
|
@@ -52,7 +52,7 @@ public function testGetNativeConnectionFailsWithLegacyConnection(): void | |
{ | ||
$connection = new Connection( | ||
$this->createMock(DriverConnection::class), | ||
new Converter(false, false, 0), | ||
new Converter(false, false, Converter::CASE_LOWER), | ||
); | ||
|
||
$this->expectException(LogicException::class); | ||
|
Uh oh!
There was an error while loading. Please reload this page.