Skip to content

Commit

Permalink
Removed test that wasn't achieving anything.
Browse files Browse the repository at this point in the history
Modified parameter test to ensure connection string is formatting per expectation.
  • Loading branch information
martinedge committed Nov 19, 2024
1 parent 5a9b576 commit db6428c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 12 additions & 0 deletions tests/Driver/AbstractOracleDriver/EasyConnectStringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ public static function connectionParametersProvider(): iterable
'(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=41521))'
. '(CONNECT_DATA=(SID=XE)(INSTANCE_NAME=SALES)(SERVER=POOLED)))',
],
'tcps-params' => [
[
'host' => 'localhost',
'port' => 41521,
'dbname' => 'XE',
'instancename' => 'SALES',
'pooled' => true,
'driverOptions' => ['protocol' => 'TCPS'],
],
'(DESCRIPTION=(ADDRESS=(PROTOCOL=TCPS)(HOST=localhost)(PORT=41521))'
. '(CONNECT_DATA=(SID=XE)(INSTANCE_NAME=SALES)(SERVER=POOLED)))',
],
];
}
}
7 changes: 0 additions & 7 deletions tests/Driver/OCI8/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,6 @@ public function testPersistentAndExclusiveAreMutuallyExclusive(): void
]);
}

public function testParseValidProtocol(): void
{
(new Driver())->connect([
'driverOptions' => ['protocol' => 'TCPS'],
]);
}

protected function createDriver(): DriverInterface
{
return new Driver();
Expand Down

0 comments on commit db6428c

Please sign in to comment.