Skip to content

Instantly share code, notes, and snippets.

@lukeraymonddowning
Created August 25, 2022 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukeraymonddowning/7219bb7fe417331df40aee8fa64fa2f0 to your computer and use it in GitHub Desktop.
Save lukeraymonddowning/7219bb7fe417331df40aee8fa64fa2f0 to your computer and use it in GitHub Desktop.
Created by Pest Playground
<?php
namespace App;
class Foo
{
}
<?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