expect("YourValue")->isEqualTo("YourValue"); // Test example 2 - Encapsulate $case->describe("Validate a string value") ->expect(function (Expect $expect) { $expect->expect("YourValue") ->isLength(9) ->isString() ->assert("Value is not valid"); }); });