Created
August 25, 2022 17:01
-
-
Save lukeraymonddowning/7219bb7fe417331df40aee8fa64fa2f0 to your computer and use it in GitHub Desktop.
Created by Pest Playground
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
class Foo | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App\Foo; | |
it('can perform a strict equality check', function () { | |
expect(1) | |
->toBe(1) | |
->not->toBe('1'); | |
}); | |
it('checks object references', function () { | |
$foo = new Foo(); | |
$bar = clone $foo; | |
expect($foo) | |
->toBe($foo) | |
->not->toBe($bar); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment