News Feed
Sections




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

Raphael Stolt's Blog:
Closing and reopening GitHub issues via PHPUnit tests
January 20, 2010 @ 11:16:18

Raphael Stolt has an interesting idea about PHPUnit plugin (GitHub_TicketListener) that allows you to close (or reopen) Github issues via PHPUnit tests.

Since PHPUnit 3.4.0 a new extension point for interacting with issue tracking systems [...]. The extension point has been introduced by an abstract PHPUnit_Extensions_TicketListener class, which allows developer to add tailor-made ticket listeners supporting their favoured TTS.

The "@ticket" notation that PHPUnit allows as an annotation is the key to linking together your unit tests with the new listener. Two methods, getTicketInfo and updateTicket, are used to have the listener make a cURL connection over to Github and send the request to a REST-like service on the remote side.

5 comments voice your opinion now!
phpunit test github close reopen ticket


blog comments powered by Disqus

Similar Posts

Juan Treminio: Unit Testing with PHPUnit Tutorial Series

Amit Singh's Blog: Installing PEAR and PHPUnit on WAMP and Windows 7

Job Posting: Ibuildings Seeks Test Engineer (Netherlands)

Travis Swicegood's Blog: Quick review of Zend_Log

Ed Finkler's Blog: PHPSecInfo v0.2.1 now available


Community Events

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


podcast laravel5 series feature extension framework voicesoftheelephpant laravel unittest api wordpress library community threedevsandamaybe opinion interview development language introduction release

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