phpunit Archives - draghici.net https://draghici.net/tag/phpunit/ A web developer's ideas Wed, 13 Mar 2024 23:05:24 +0000 en-US hourly 1 https://wordpress.org/?v=7.1.5 https://draghici.net/app/uploads/2017/06/cropped-keyboard-grayscale-150x150.jpg phpunit Archives - draghici.net https://draghici.net/tag/phpunit/ 32 32 SlimPHP and PHPunit – “Failed asserting that 200 is identical to 404” https://draghici.net/slimphp-phpunit-failed-asserting-200-identical-404/ Fri, 05 May 2017 22:07:13 +0000 https://draghici.net/?p=925 I got the “Failed asserting that 200 is identical to 404” while using Slim and phpunit. But the API works fine when manually testing. After some digging, I realized that phpunit did not like the way I included files in my app – if replacing require_once with require where used, the test outputs Fatal error: Cannot redeclare class \DBClass in […]

The post SlimPHP and PHPunit – “Failed asserting that 200 is identical to 404” appeared first on draghici.net.

]]>