toBeScalar(); }); test('failures', function () { expect(null)->toBeScalar(); })->throws(ExpectationFailedException::class); test('not failures', function () { expect(42)->not->toBeScalar(); })->throws(ExpectationFailedException::class);