Skip to content

Jean-Pierre Lambelet

Il n'y a pas de questions bêtes

  • Programming tips
  • About JP
  • English
    • Français

PHPUnit

PHPUnit 

PHPunit: How to test a controller which throws an error.

February 12, 2021February 12, 2021 JP 0 Comments

Let’s say we have a method in a controller like this: /** ‘@Route (path’/add’, name'”add,” methods */ public function add

Share this:

  • Twitter
  • Facebook
Read more
PHPUnit 

PHPUnit how to mocker / simulate an object and methods

April 23, 2014November 19, 2019 JP 0 Comments

When you start using PHPunit, you often find yourself faced with the need to simulate a method or object. Fortunately

Share this:

  • Twitter
  • Facebook
Read more
  • Français
  • English

Recent Posts

  • Symfony – Doctrine – How to see where a sql query is executed
  • Install drupal/console on drupal 9
  • PHP Spaceship Operator <=>
Copyright © 2025 Jean-Pierre Lambelet. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.