• 1Installation
  • 2Preliminary Knowledge
  • 3Expections
  • 4Mocking
  • 5Generate Random Data

T.apex

  • Docs
  • Tutorials
Getting started with T.apex

Expections

T.apex offers a lot of easy-to-use expectations for your assertions.

T.expect(true).toBe(true);
T.expect(5).toEqual(5);
T.expect('abc').toMatch('.*b.*');
T.expect(null).toBeNull();
T.expect(true).toBeTrue();
T.expect(false).toBeFalse();
T.expect('abc').toContain('b');
T.expect(2).toBeLessThan(3);
T.expect(3).toBeGreaterThan(2);
T.fail('Should fail here');
Done