8000 [Cache][Lock] fix tests · symfony/symfony@5845c3f · GitHub
[go: up one dir, main page]

Skip to content

Commit 5845c3f

Browse files
[Cache][Lock] fix tests
1 parent f75e9d5 commit 5845c3f

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