Quantcast
Channel: artur.ejsmont.org - Unit Testing
Browsing latest articles
Browse All 4 View Live

Image may be NSFW.
Clik here to view.

Review - Advanced PHP Programming

This is hands down the best PHP book for experienced PHP programmers I've ever seen. It touches most of the things you have to know or be aware of if you want to be a successful PHP developer. Book...

View Article



Excluding parts of PHP code from code coverage report

A funny thing happened to me the other day when i noticed a new operator (adnotation) supported by php unit.So there apparently is a way to ignore parts of the PHP code from code coverage report.If you...

View Article

A great way to mock chained calls in PHPUnit

Few days ago i had to write a groovy test for a java class and i had a long chain of calls to mock. I was not sure how to test it nicely and i started wondering is there a nicer way to do it in PHP....

View Article

How to unittest a failure of fopen using phpunit? - how to temporarily...

Just a very quick tip on how to test for warnings that may happen in functions like fopen. PHP does not treat errors in unified way some of them rise warnings, some of them throws exceptions others...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images