You searched for phpunit

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. Ruling the Swarm (of Tests) with Codeception

    PHP testing framework built on top of Symfony2 components, Mink, and PHPUnit. Codeception includes more than 20 modules to test over popular PHP frameworks, APIs (REST, SOAP), data stores (MySQL, PostgreSQL, MongoDB, etc) and web with Selenium WebDriver. Check it out on the official web site
  8. pTest: PHP Unit Tester in 9 Lines Of Code

    for such a simple testing function is introducing the uninitiated into the world of unit testing. I know that before I got into it, the biggest barrier was the complexity of the frameworks. Perhaps pTest will give beginners a starting point, from which they can move onto more feature-rich frameworks like PHPUnit or SimpleTest once they outgrow the humble assertTrue().