Skip to content

Commit 7b7d92d

Browse files
committed
Fixed failing tests on windows
1 parent 6cb1c88 commit 7b7d92d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/BacktraceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_backtrace_in_failed_simple_matching()
2424
{
2525
$this->matcher->match(100, '@string@');
2626

27-
$this->assertSame(
27+
$this->assertEquals(
2828
<<<FAILED_BACKTRACE
2929
#1 Matcher Coduo\PHPMatcher\Matcher matching value "100" with "@string@" pattern
3030
#2 Matcher Coduo\PHPMatcher\Matcher\ChainMatcher (all) matching value "100" with "@string@" pattern
@@ -71,7 +71,7 @@ public function test_backtrace_in_succeed_simple_matching()
7171
{
7272
$this->matcher->match('100', '@string@');
7373

74-
$this->assertSame(
74+
$this->assertEquals(
7575
<<<SUCCEED_BACKTRACE
7676
#1 Matcher Coduo\PHPMatcher\Matcher matching value "100" with "@string@" pattern
7777
#2 Matcher Coduo\PHPMatcher\Matcher\ChainMatcher (all) matching value "100" with "@string@" pattern
@@ -142,7 +142,7 @@ public function test_backtrace_in_failed_complex_matching()
142142
// Uncomment when backtrace logic changes, run tests and then commit again.
143143
//\file_put_contents(__DIR__ . '/BacktraceTest/failed_complex_matching_expected_trace.txt', (string) $this->matcher->backtrace());
144144

145-
$this->assertSame(
145+
$this->assertEquals(
146146
file_get_contents(__DIR__ . '/BacktraceTest/failed_complex_matching_expected_trace.txt'),
147147
(string) $this->matcher->backtrace()
148148
);
@@ -198,7 +198,7 @@ public function test_backtrace_in_succeed_complex_matching()
198198
// Uncomment when backtrace logic changes, run tests and then commit again.
199199
//\file_put_contents(__DIR__ . '/BacktraceTest/succeed_complex_matching_expected_trace.txt', (string) $this->matcher->backtrace());
200200

201-
$this->assertSame(
201+
$this->assertEquals(
202202
file_get_contents(__DIR__ . '/BacktraceTest/succeed_complex_matching_expected_trace.txt'),
203203
(string) $this->matcher->backtrace()
204204
);

0 commit comments

Comments
 (0)