Skip to content

3DFace/phpunit-customization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My custom comparison extension for phpunit.

I prefer to compare objects with equals method.

phpunit provides assertObjectEquals method, but it's unsuitable to me because I want to compare arrays of objects too.

Also I prefer strict scalar comparison.

To use it add the following to phpunit.xml

  <extensions>
     <extension class="dface\PhpunitCustomization\ComparatorExtension"/>
  </extensions>

About

My custom comparison extension for phpunit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages