I've been away from full time Drupal development for a couple of years and have recently returned, this time making a commitment improve my understanding of core.
I've been away from full time Drupal development for a couple of years and have recently returned, this time making a commitment improve my understanding of core.
So I am writing a PHPUnit mock object, added ensure calls and I wanted to also ensure that no more method calls happens than the ones I ensured. This is done by the following snippet (the actual code does more with the expects call of course):