@@ -24,7 +24,7 @@ public function test_backtrace_in_failed_simple_matching()
24
24
{
25
25
$ this ->matcher ->match (100 , '@string@ ' );
26
26
27
- $ this ->assertSame (
27
+ $ this ->assertEquals (
28
28
<<<FAILED_BACKTRACE
29
29
#1 Matcher Coduo\PHPMatcher\Matcher matching value "100" with "@string@" pattern
30
30
#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()
71
71
{
72
72
$ this ->matcher ->match ('100 ' , '@string@ ' );
73
73
74
- $ this ->assertSame (
74
+ $ this ->assertEquals (
75
75
<<<SUCCEED_BACKTRACE
76
76
#1 Matcher Coduo\PHPMatcher\Matcher matching value "100" with "@string@" pattern
77
77
#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()
142
142
// Uncomment when backtrace logic changes, run tests and then commit again.
143
143
//\file_put_contents(__DIR__ . '/BacktraceTest/failed_complex_matching_expected_trace.txt', (string) $this->matcher->backtrace());
144
144
145
- $ this ->assertSame (
145
+ $ this ->assertEquals (
146
146
file_get_contents (__DIR__ . '/BacktraceTest/failed_complex_matching_expected_trace.txt ' ),
147
147
(string ) $ this ->matcher ->backtrace ()
148
148
);
@@ -198,7 +198,7 @@ public function test_backtrace_in_succeed_complex_matching()
198
198
// Uncomment when backtrace logic changes, run tests and then commit again.
199
199
//\file_put_contents(__DIR__ . '/BacktraceTest/succeed_complex_matching_expected_trace.txt', (string) $this->matcher->backtrace());
200
200
201
- $ this ->assertSame (
201
+ $ this ->assertEquals (
202
202
file_get_contents (__DIR__ . '/BacktraceTest/succeed_complex_matching_expected_trace.txt ' ),
203
203
(string ) $ this ->matcher ->backtrace ()
204
204
);
0 commit comments