Zum Inhalt springen

Schlagwort: assert

Assertions mal anders

Unittests sollten wir ja alle schreiben und da kommen wir immer an den Punkt, an dem wir auch die Assertions definieren müssen. PHPUnit bietet hierfür einige Methoden an und – zumindest bei mir – findet man meistens assertEquals, assertSame und assertTrue/assertFalse. Aber man kann das ganze auch viel schöner verpacken und dafür gibt es natürlich eine Bibliothek.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close