You searched for “phpunit”

  1. Getting Started with PHPUnit

    of unit testing with PHPUnit and how easy it is to get started using it as I guide you trough the process of writing your first test. Before you can start writing your first unit test, you need to have PHPUnit installed. It can easily be installed using the PEAR installer, and the process
  2. Error Condition Testing with PHPUnit

    Let’s say you’re maintaining code that uses PHP’s native trigger_error() function to log error information. Let’s also say that you’re in the process of using PHPUnit to write unit tests for that code. If you refer to the PHPUnit manual, there's a section that deals with testing for error
  3. PHPMaster: Getting Started with PHPUnit

    ? This is where unit testing comes in, to automate the testing process. Unit testing makes it easier, and above all safer, to modify your code because it catches any irregularities in the behavior (i.e More: PHPMaster: Getting Started with PHPUnit
  4. Symfony in Drupal 8

    further on Guzzle, we recommend reading our previous article on it. PHPUnit – Used in Drupal 8 to standardize unit testing throughout the core as well as help developers write code that is of utmost quality. PHPUnit ensures that any code written in Drupal 8 and in any custom module incorporated
  5. PHP News You May Have Missed

    down the barrel of another WP-plugin/theme marketplace, filled to the brim with awful, irreparable code, or does this have proper potential? We’ll know more in a couple days. For now, all we know is that Cartalyst seems to be behind the site. PHPUnit drops PEAR support PHPUnit, the essential
  6. Interview: Tom Oram and Rob Allen

    there is a failing test somewhere! If you’re not used to this, then it can take some time, but after a while you will find it harder to write code without tests. Secondly give phpspec a try. PHPUnit is very forgiving and when using it you can come up with all sorts of “clever” tests to test the code
  7. Composer Cheatsheet

    ": { "post-update-cmd": MyVendor\\MyClass::postUpdate", "post-package-install": , "post-install-cmd": [ "MyVendor\\MyClass::warmCache", "phpunit -c app/" ] }, As with the composer.phar section, by mousing over them, you’ll see the section specifics, on the right
  8. Politics Often Hold the Community Back

    with testing, code sniffing etc, but it’s definitely something I’d like to implement in the near future. What is in your standard toolchain? PHPUnit and PHPStorm - daily. Ansible and Vagrant more and more. I also use thinks like Navicat for MySQL (because I bought it before I realised Sequel Pro
  9. Data Fixtures in Symfony2

    and configure the DoctrineFixturesBundle. If you are familiar with Composer, the process should be easy and straightforward, no hassles. Next, we will install PHPUnit, the default test framework used by Symfony. Its official site offers the download of the latest phpunit.phar file. Simply save