Custom assertion for PHPUnit.