Skip to content

Commit

Permalink
Use unique id in temp settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
Quetzacoalt91 committed Jun 29, 2018
1 parent 7e096d5 commit f4cd120
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/SettingsFileWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ public function testSettingsIsProperlyGenerated()
'_RIJNDAEL_IV_' => 'QSt/I95YtA==',
);

$file = sys_get_temp_dir().DIRECTORY_SEPARATOR.'temp_settings.php';
// Create file first
touch($file);

$file = tempnam(sys_get_temp_dir(), 'PSS');
$this->settingsWriter->writeSettingsFile($file, $datas);

$this->assertSame($fileExpected, file_get_contents($file));
Expand Down

0 comments on commit f4cd120

Please sign in to comment.