jsonmapper icon indicating copy to clipboard operation
jsonmapper copied to clipboard

Condense assertions

Open SvenRtbg opened this issue 4 months ago • 0 comments

Use assertSame to validate both type and value in one step. Use assertCount to check number of array elements. Use assertContainsOnly(InstanceOf) to check type of array elements.

Tiny cleanup for tests that are only run for PHP 7.0 or 7.1 and up, as they need no check for the PHP version anymore.

Call assertions via "$this" everywhere.

SvenRtbg avatar Mar 21 '24 17:03 SvenRtbg