Logan Bailey

Adventures In Web Development

Blog, About, GitHub, and LinkedIn

Ramsey UUID and Unit Tests

March 22nd, 2018
Generating Uuids with Ramsey Uuid is damn easy, \Ramsey\Uuid\Uuid::uuid1(). Generating predictable Uuids for testing while not obvious, is not difficult either. In a few simple steps you can replace the default Uuid Factory with a mock factory that will return your specified Uuids .