You searched for phpunit

  1. 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
  2. An Introduction to Mock Object Testing

    this dependency. You can now start programming the business logic you are tasked to do and pass the test. PHPUnit 3.6.7 by Sebastian Bergmann. F Time: 0 seconds, Memory: 3.00Mb There was 1 failure: 1) StatusServiceTest::testGetAnalytics null does not match expected type "array". /home/jeune/mock-object
  3. 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
  4. News Wire: PHP 4’s Days are Numbered

    speed the transition to PHP 5.2 This grassroots campaign calls for PHP developers to cease support for PHP 4 in new releases of their projects from Tuesday, February 5th, 2008. Significant projects include Swift Mailer, PHPUnit, Drupal, phpMyAdmin, Typo3 and Symfony. (tags: php hosting opensource
  5. Using YAML in Your PHP Projects

    () are available with the sfYaml class. Editor Note Oct 28 2012: The accompanying code on GitHub has been updated to use Composer for obtaining the PHPUnit and Symfony 1.4 YAML Component dependencies. Integrating a PHP YAML Parser into Your Project Whenever you integrate a third-party class
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. Build Automation with Composer Scripts

    \Installer::postPackageInstall", "phpunit -c /tests", "./bin/" ] } } 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
  14. 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
  15. What Happened when we Talked PHP with the Experts

    … I believe PHPUnit is where it's at. 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
  16. 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
  17. 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