You searched for phpunit

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. First Look at Thelia 2: Next Generation E-commerce?

    . The full version won't be launched until the end of this year, but when an e-commerce system is described in terms of open source, Symfony, HTML5, Bootstrap, Propel, PHPUnit, Travis, Smarty and semantic microdata, it warrants some attention. Fundamentals Thelia 2 is built on some popular
  16. Building a Web App with Symfony 2: Finalizing

    ; } } To make sure this function really works, we'll have to test it before using it. We'll use PHPUnit as the test bench. Please refer to the official site for detailed instructions on how to install it. I used the phpunit.phar way to download the package and place it in my
  17. Continuous Deployment Revisited

    of and hoping it would be enough (and, of course, it never was). No, I’m talking about some real fine testing, automatic tests that put your code through its paces. PHPUnit contains a large number of standard tests (assertions) that can be performed on your code. If there are problems, an exception
  18. Maven and PHP

    the PHP-Maven plugin from the command line and in Eclipse. Install Maven PHP-Maven uses the power of Maven for building, reporting, and creating documentation of your PHP projects. It adapts the Maven build life cycle to the PHP world while fully supporting PHP 5. PHP-Maven uses PHPUnit for unit
  19. phpDay 2013: News and Highlights

    and showed some examples of how it can simplify the creation of mocks compared other frameworks like PHPUnit. It seems a very promising project, but I can't give an honest assessment of it since I haven't tried it and don't have much experience with mocking. There's not enough space to write about
  20. Goodbye CodeIgniter, Hello Laravel

    . In Laravel it’s easier. You have Tasks using the command line tool that Laravel comes with called Artisan. Miscellaneous Unit Testing – Codeigniter uses a very rudimentary testing class for writing unit tests. It is limited, but you can integrate PHPUnit. Laravel comes with PHPUnit out