Sebastian Bergman’s book “Real-world solutions for developing high-quality PHP frameworks and applications” in more detail, but mainly with examples. The good thing about well-named methods is that they don't need full documentation. You just need to first understand the concepts of all this. Hint, equalTo () is often used inside custom statements, for example, $ this-> assertThat ($ foo, $ this-> logicalNot ($ this-> equalTo ($ bar))); or more usually inside expectations like → c ($ this-> equalTo ('something')) .
The basic concepts are well documented, I rarely had to delve into the source code. For example, with () "Specifies the statements made for the passed parameter. In the simplest cases, name it w / val, which you will use to call the method, in the same order. Params include: $ this-> anything (), $ this- > largeThan ($ n), $ this-> stringContains ($ str), isTrue (), isFalse (), isNull (), equalTo () etc. " Whereas once () is called from expectations () and expects () "registers a new wait, for example, how many times the method specified in the method () ($ count), once (), atLeastOnce (), never ( ), any () or at ($ index). "
rkulla
source share