expect(0)->not->toBe(false);
});
it("passes if [] is not === true", function () {
expect([])->not->toBe(true);
});
it("passes if [] is not === false", function () {
expect([])->not->toBe(false);
});
it("passes if 'Hello World' is not === true", function () {
expect('Hello World')->not->toBe(true);
});
it("passes if 'Hello World' is not === false", function () {
expect('Hello World')->not->toBe(false);
});
it("passes if 'Hello World' is not === 'World Hello'", function () {
expect('Hello World')->not->toBe('World Hello');
});
it("passes if [1, 3, 7] is not === [1, 7, 3]", function () {
expect([1, 3, 7])->not->toBe([1, 7, 3]);
});
it("passes if ['a' => 1, 'b' => 3, 'c' => 7] is not === ['a' => 1, 'c' => 7, 'b' => 3]", function () {
expect(['a' => 1, 'b' => 3, 'c' => 7])->not->toBe(['a' => 1, 'c' => 7, 'b' => 3]);
});
});
describe("::description()", function () {
it("returns the description message", function () {
$actual = ToBe::description();
expect($actual)->toBe('be identical to expected (===).');
});
});
});