Skip to content

Commit f562017

Browse files
committed
string equals string ignoring line endings
1 parent 154b5b0 commit f562017

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Support/SupportServiceProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function testLoadTranslationsFromWithNamespace()
201201
public function test_can_remove_provider()
202202
{
203203

204-
$r = file_put_contents($this->tempFile, $contents = <<< PHP
204+
file_put_contents($this->tempFile, $contents = <<< PHP
205205
<?php
206206
207207
return [
@@ -213,11 +213,11 @@ public function test_can_remove_provider()
213213
ServiceProvider::removeProviderFromBootstrapFile('TelescopeServiceProvider', $this->tempFile, true);
214214

215215
// Should have deleted nothing
216-
$this->assertSame($contents, trim(file_get_contents($this->tempFile)));
216+
$this->assertStringEqualsStringIgnoringLineEndings($contents, trim(file_get_contents($this->tempFile)));
217217

218218
ServiceProvider::removeProviderFromBootstrapFile('App\Providers\TelescopeServiceProvider', $this->tempFile, true);
219219

220-
$this->assertSame(<<< PHP
220+
$this->assertStringEqualsStringIgnoringLineEndings(<<< PHP
221221
<?php
222222
223223
return [
@@ -228,7 +228,7 @@ public function test_can_remove_provider()
228228

229229
ServiceProvider::removeProviderFromBootstrapFile('AppServiceProvider', $this->tempFile);
230230

231-
$this->assertSame(<<< 'PHP'
231+
$this->assertStringEqualsStringIgnoringLineEndings(<<< 'PHP'
232232
<?php
233233
234234
return [

0 commit comments

Comments
 (0)