You searched for phpunit

  1. Re-introducing FuelPHP

    . Refine: Run tasks such as migrate, and also your own customized tasks. Package: Install, update and remove packages. Console: Test your code in real-time using an interactive shell. Testing: Run PHPUnit tests. Read more about oil here. FuelPHP Packages Fuel has packages which allow
  2. The Forum PHP Report

    of such caliber - we’re used to expecting more from our, well, heroes. Still, the talk was informative when it wanted to be that and I did learn new things - if not about the pattern, then about the man and the process behind PHPUnit. Jordi Bogianno’s talk was a shovel to the face - I went in expecting
  3. PhpStorm 8 - New Features

    components in the IDE RequireJS aliases support CucumberJS and Less 1.6 support Live templates are now suggested in code completion Code blocks automatically indent after closing a curly brace Find the rest here or on the original EAP post. PhpUnit 4.0 Support Two weeks later, EAP 136.1255
  4. Interactive PHP Debugging with PsySH

    pattern. The UML class diagram of such a pattern is as follows: Do not worry if you do not know much about UML or design patterns, understanding them is not required for this article. Also for this project, I created a set of test cases. Those test cases can be run by phpUnit. Again, you do
  5. Mock your Test Dependencies with Mockery

    the tests, then build the final objects. A mock object is generally faster than preparing a whole database for your test. When running unit tests, you are probably using PHPUnit. PHPUnit comes with some default mocking abilities as you can see in the documentation. You can read more about mocking
  6. 8 Must Have PHP Quality Assurance Tools

    and advice about them - however, we’re open to expanding this list with other QA tools you throw our way that get plenty of votes in the comments below or seem interesting and/or useful enough. 1. PHPUnit Mr. Bergmann’s own PHPUnit is, unsurprisingly, present on the list. PHPUnit is the most
  7. PhpStorm 8 Released - See What's New and Grab a Free License

    . New Features in PhpStorm 8 Apart from the previously covered support for Drupal 8, multiple cursors, PHPUnit 4, remote interpreters, Markdown in PHPDoc, PSR4 inspections, ability to open remote URLs from the files referencing them and, of course, Behat support, several new improvements were made
  8. Unit Testing with GuzzlePHP

    file will look as follows: { "require": { "php": ">=5.3.3", } "require-dev": { "phpunit/phpunit": "4.0.*", "guzzle/guzzle": "~3.7" } } I’ve stipulated
  9. 18 Critical Oversights in Web Development

    specifically constructed to work with PHP projects. If you find this too overwhelming, then at least write unit tests for your application using PHPUnit, Behat or PHPSpec. It may seem a lot of work at first, but it’s proven countless times that tests are helping projects in the long run
  10. PHPSummerCamp Review

    first ever talk was better than expected for a rookie, and he covered PHPSpec well. His workshop introduced the audience to the mystical world of auto-mocking and code generation with PHPSpec - a specification testing tool that can either be used as a replacement for, or complement to PHPUnit
  11. 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
  12. Check Your Code's Quality with SensioLabs Insight

    and PHPUnit, for example. Although SensioLabs Insight has some similar checks, it also does much more. Do note, however, that SensioLabs Insight does not run on your local environment, but rather as a service by SensioLabs. As of this writing, it has 99 checkpoints it scans for. It scans
  13. When WordPress Meets Vagrant: VVV

    5.5.x php-fpm 5.5.x memcached 1.4.13 PHP memcache extension 3.0.8 PHP xdebug extension 2.2.5 PHP imagick extension 3.1.2 PHPUnit 4.0.x ack-grep 2.04 git 1.9.x subversion 1.8.x ngrep dos2unix Composer phpMemcachedAdmin phpMyAdmin 4.1.14 (multi-language) Opcache Status Webgrind NodeJs
  14. Functional Testing in Symfony2

    that there are some typos in the template or that there is a logical flaw and the counting of all books fails. To run the test, issue the following command in the terminal window: php phuunit.phar -c app/ The “-c app/” argument simply tells PHPUnit to use the configuration found in the app
  15. Continuous Integration with PHP-CI

    part for me was the fact that I received messages like Plugin Status: Success and Plugin Status: Failed in my console and the build was giving me an empty table. I believed it meant that it somehow failed to run a tool like PHPUnit. Yet it tells you if PHPUnit actually succeeded or failed
  16. Autogenerate CRUD Apps with Phreeze

    view in a later stage. Another type of package is called the test package. If supports PHPUnit and QUnit. We will not cover this in this article. Application Name and Root URL For application name, just give it a meaningful one of your choice. We need to be careful when setting
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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