News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Phil Sturgeon:
Testing and Contributing with Composer Packages
May 03, 2013 @ 11:47:16

Phil Sturgeon has posted a guide to his site about running tests and contributing back to packages that live in Composer.

While Composer has been around for a while now, many packages are still in their infancy (< 1.0) or sometimes are just not as feature filled as they could be. To be fair there is always more to be done. It can always do more, or do the same thing more efficiently. Whatever the case, pull requests are going to be a common thing for the PHP community to be doing to these packages and this needs to be done safely, with unit-testing. So, how do you run their test suite and add your own tests?

He includes a step-by-step guide to getting the environment set up to run the package's tests and how to add some of your own. He includes the commands to send the pull request back up to Github (on your own fork, of course) and how to use that same fork as your package resource until the main project is updated.

0 comments voice your opinion now!
composer package testing unittest contribute fork pullrequest tutorial

Link: http://philsturgeon.co.uk/blog/2013/05/testing-contributing-composer-packages

blog comments powered by Disqus

Similar Posts

SitePoint Web Tech Blog: How to Test Multiple Websites on One PC With Apache Virtual Hosts

JSLabs Blog: How to turn a php script to an exe...for free

Felix Geisendorfer's Blog: Setting up Xdebug on Mac OS X (or Win32 / Linux)

SitePoint Web Foundations Blog: Quick Tip: Install Zend Server 7 on an Ubuntu 14.04 Vagrant Box

Kristina Chodorow's Blog: Writing a PHP Extension (Four Part Series)


Community Events





Don't see your event here?
Let us know!


list library symfony community opinion laravel language package introduction zendserver api tips series podcast update interview framework install deployment release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework