You searched for phpunit

  1. Web Routing in PHP with Aura.Router

    with the file structure below: All the source files lie in the src directory, and from there follows the PSR-0 Standard for autoloaders. All unit tests reside in the tests directory; you can run the tests by invoking phpunit inside the tests directory (just be sure you have PHPUnit installed
  2. 10 Tips for Better Coding

    the testing process. Testing (particularly systematic testing) is crucial to every piece of your million dollar application. Good testing tools are PHPUnit and SimpleTest for unit testing your PHP Classes. For GUI testing, I recommend SeleniumHQ tools. Summary In this article you saw an overview
  3. PHP's Quest for Performance: From C to hhvm

    Sebastian Bergmann, lead developer of PHPUnit; David Coallier, PEAR President and CTO of echolibre; and Brandon Savage, a developer at Mozilla. Overall, its reception was positive, and development on the project continued. Facebook worked with several popular projects in the PHP community, including
  4. Build Automation with Composer Scripts

    \Installer::postPackageInstall", "phpunit -c /tests", "./bin/install.sh" ] } } I've defined some scripts for the pre-install-cmd, post-install-cmd, and post-package-install events. As you can see, we can define any combination
  5. PHP Namespaces

    and class names using underscores; the mail class in the blog component was named Blog_Mail. This practice led to many long, and sometimes confusing, class names. Consider the name of a class in the PHPUnit framework, PHPUnit_Framework_MockObject_Matcher_StatelessInvocation. This obviously isn't
  6. Rapid Application Development with CakePHP

    is used optionally for PHPUnit tests). Each variable is an associative array of settings that should be familiar to you: hostname, login, password, database, and prefix. The datasource key sets which database driver to use and the default is MySQL (Database/Mysql). CakePHP uses PDO and so it also
  7. What Happened when we Talked PHP with the Experts

    … I believe PHPUnit is where it's at. http://www.phpunit.de/ I've mostly used SimpleTest in the past, but I don't recommend it, and don't let the name fool you… it's not simpler :) MikeH  Good. I started to dabble with that one a few years ago. LornaJan...  And what @HAWK said - if you're
  8. Effortless (or Better!) Bug Detection with PHP Assertions

    .org/. Unit Testing Modern development methodologies such as Extreme Programming advocate that you write unit tests before you write code. Whether or not you want to go this far, you'll find you spend less time writing unit tests if you have help automating their execution. Consider using PhpUnit
  9. Test Driven Development: Are You Test-infected?

    often go hand in hand. TDD usually starts with a unit test framework. That is not to say that test-driven development is unit testing - it's not. Because I develop primarily with PHP, I chose SimpleTest, written by Marcus Baker. PHP offers another popular unit test framework called PHPUnit, but I opted
  10. Getting Started with PEAR - PHP's Low Hanging Fruit

    account). Option 6: Test Directory - Place any unit test scripts provided with the package, normally for execution under PEAR::PHPUnit, here. Again, something like $prefixtests for Windows ($prefix/test -- LAMP). That's the hard part done. Continue following the prompts and the Installer