8000 minor #34778 [Cache][Lock] fix tests (nicolas-grekas) · symfony/symfony@1f00705 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f00705

Browse files
minor #34778 [Cache][Lock] fix tests (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [Cache][Lock] fix tests | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | Fix #34444 | License | MIT | Doc PR | - Commits ------- 5845c3f [Cache][Lock] fix tests
2 parents 0a9a6ba + 5845c3f commit 1f00705

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Component/Cache/Tests/Adapter/PdoAdapterTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public function testDsn(string $dsn, string $file = null)
9494
public function provideDsn()
9595
{
9696
$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');
97-
yield ['sqlite://localhost/'.$dbFile, ''.$dbFile];
98-
yield ['sqlite:'.$dbFile, ''.$dbFile];
99-
yield ['sqlite3:///'.$dbFile, ''.$dbFile];
97+
yield ['sqlite://localhost/'.$dbFile.'1', $dbFile.'1'];
98+
yield ['sqlite:'.$dbFile.'2', $dbFile.'2'];
99+
yield ['sqlite3:///'.$dbFile.'3', $dbFile.'3'];
100100
yield ['sqlite://localhost/:memory:'];
101101
yield ['sqlite::memory:'];
102102
}

src/Symfony/Component/Lock/Tests/Store/PdoStoreTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public function testDsn(string $dsn, string $file = null)
9797
public function provideDsn()
9898
{
9999
$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');
100-
yield ['sqlite://localhost/'.$dbFile, ''.$dbFile];
101-
yield ['sqlite:'.$dbFile, ''.$dbFile];
102-
yield ['sqlite3:///'.$dbFile, ''.$dbFile];
100+
yield ['sqlite://localhost/'.$dbFile.'1', $dbFile.'1'];
101+
yield ['sqlite:'.$dbFile.'2', $dbFile.'2'];
102+
yield ['sqlite3:///'.$dbFile.'3', $dbFile.'3'];
103103
yield ['sqlite://localhost/:memory:'];
104104
yield ['sqlite::memory:'];
105105
}

0 commit comments

Comments
 (0)
0