File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -234,9 +234,9 @@ public function isNotEqualTo($value): Ensurance
234
234
*
235
235
* @return Ensurance
236
236
*/
237
- public function isIdenticalTo ($ value ): Ensurance
237
+ public function isSameAs ($ value ): Ensurance
238
238
{
239
- $ this ->enforce ($ this ->value === $ value )->orThrow ('"%s" is not identical to "%s" ' , $ this ->value , $ value );
239
+ $ this ->enforce ($ this ->value === $ value )->orThrow ('"%s" is not the same as "%s" ' , $ this ->value , $ value );
240
240
241
241
return $ this ;
242
242
}
@@ -246,9 +246,9 @@ public function isIdenticalTo($value): Ensurance
246
246
*
247
247
* @return Ensurance
248
248
*/
249
- public function isNotIdenticalTo ($ value ): Ensurance
249
+ public function isNotSameAs ($ value ): Ensurance
250
250
{
251
- $ this ->enforce ($ this ->value !== $ value )->orThrow ('"%s" is identical to "%s" ' , $ this ->value , $ value );
251
+ $ this ->enforce ($ this ->value !== $ value )->orThrow ('"%s" is the same as "%s" ' , $ this ->value , $ value );
252
252
253
253
return $ this ;
254
254
}
Original file line number Diff line number Diff line change @@ -37,16 +37,16 @@ public function testIsNotEqual()
37
37
ensure ('42 ' )->isNotEqualTo (4.2 );
38
38
}
39
39
40
- public function testIsIdentical ()
40
+ public function testIsSame ()
41
41
{
42
- ensure ('foo ' )->isIdenticalTo ('foo ' );
43
- ensure (42 )->isIdenticalTo (2 * 21 );
42
+ ensure ('foo ' )->isSameAs ('foo ' );
43
+ ensure (42 )->isSameAs (2 * 21 );
44
44
}
45
45
46
- public function testIsNotIdentical ()
46
+ public function testIsNotSame ()
47
47
{
48
- ensure ('foo ' )->isNotIdenticalTo ('bar ' );
49
- ensure ('foo ' )->isNotIdenticalTo (42 );
48
+ ensure ('foo ' )->isNotSameAs ('bar ' );
49
+ ensure ('foo ' )->isNotSameAs (42 );
50
50
}
51
51
52
52
public function testIsResource ()
You can’t perform that action at this time.
0 commit comments