PHP in Action Blog: Running PHP tests inside Vim
81155
From the PHP in Action blog today, there's a new post that (briefly) shows how to run your tests directly from a popular unix text editor - vim.   I created my own test runner to run tests inside Vim, I can't remember how long ago. Must be a year or two. I never shared it with the world. It was too primitive for anyone else to use. Then, recently, I decided to try re-implementing it in a more serious way.   The "more serious way" meant using Vim script to its full potential, including the ability to work with objects and already has its own testing framework. He includes a screenshot but no download just yet. It looks promising and makes running tests as simple as hitting F11 and watching it go.
323470
This month's edition of php|architect has been released - complete with the "return" of a sample article.
445025
Popular posts from PHPDeveloper.org for the past week:Stijn Leenknegt's Blog: [PHP6] function-return-array idea!GeesNotNerds Blog: Free PHP + Ajax chat appStefan Mischook's Blog: Object Oriented PHP Tutorial Updated - Steps 18 - 22Dave Dash's Blog: SymfonyCampWebDigity.com: PHP geotargeting techniquesEtienne Kneuss' Blog: Late Static Bindings ExplainedDevShed: Handling Static Data with PHP 5PHP-Learn-It.com: Cooking Cookies with PHPMichael Kimsal's Blog: PHP PredictionJob Posting: Steinman Recruiting Seeks Senior Developer (Littleton, CO)
295577
Popular posts from PHPDeveloper.org for the past week:PHPBuilder.com: Fundamentals of PHP SuperglobalsGareth Heyes' Blog: Regular expression challengeAnyExample.com: Downloading files from Amazon S3Travis Swicegood's Blog: PHPT: A teaser...Nessa's Blog: Using PHP to Display Version Info (I and II)Laura Thomson's Blog: On Open Source: PHP Video PodcastSitePoint PHP Blog: Dynamic global functions in PHPJosh Sharp's Blog: Why you should be using a frameworkDerick Rethans' Blog: XDebug 2.0.1Tobias Schlitt's Blog: At IPC2k7: WebDAV will come over you...
386588
Latest PHPClasses.org Releases:Smarty and MIME message integrationYour SayphpPhotoGalleryInterfacesIlariaParser 7just7.comaDB PDO like database abstractionSAMP Socket
683176
Clay Loveless, spurred on by a comment from a visitor to his site, has modified his Trac package to get things working correctly with the syntax highlighting.    As John Herren pointed out in the comments to yesterday's post, my suggestion for PHP syntax coloring wasn't working for several versions of Trac.   After a little digging, it turned out that my CSS rules were based on the non-standard SilverCity highlighting output, rather than the newer and more common native PHP highlighting.    His solution is to create a simple shell script, php_mimeview, to make adding cirrect syntax highlighting as easy as changing your config.
150071
On his blog today, Mike Lively has posted about the work h's done to create a database extension for the popular unit testing software for PHP, PHPUnit.   For those that may not have read any of my previous postings on the subject the goal of this software is to extend the functionality of PHPUnit to allow using seed data to put a given database into a known state prior to executing each test. It also provides an easy mechanism to compare database contents with an expected dataset.   Mike has just completed the initial feature set for his project - more or less a port of DBUnit over to PHP. The post includes not only details about this initial release but also code that demonstrates its use. In his example, it's used to validate that a bank account has been created properly by comparng database information before and after the insert.
322217
Sara Golemon brings us some news from the front about PHP6 in her latest blog entry today.   While everyone else has been busily gearing up for the release of PHP 5.2 and the new features that are going to come with it, Andrei and his small band of merry babelonians (yours truly included) have been making inroads on preparing PHP6 for a preview release. In the past week we've managed to roughly double the number of builtin functions (those which are part of the main distribution) that have been reviewed for unicode safety, either flagging them as good or upgrading their functionality   She also talks about what kinds of functions this entailed and how far along they are total (around 22%). She also encourages anyone that wants to get involved to help to jump right in.
712717
Picking back up on his blog, Sean Coates shares a Dashboard widget he's created to do quick and dirty PHP interpreting on the fly:   I found myself using php -r on the command line to test some simple code snippets, and it occurred to me that this isn't "The Mac Way." So, following the excellent documentation at Apple, I managed to come up with something pretty useful in an afternoon.   His widget sits happily, ready to take in PHP code and output the result at the click of a button.
394439
Popular posts from PHPDeveloper.org for the past week:PHPBuilder.com: AJAX and PHP Part 2 - XML Communication/ProcessingCommunity News: Zend Framework 1.0.0 ReleasedMike Potter's Blog: Slides for today's e-seminar on Flex and PHPBlogSecurity.net: Interview with Stefan Esser on WordPressCommunity News: India's First PHP UnconferencePro::PHP Podcast: Newscast for 2007.06.28JSLabs Blog:  How to create Microsoft Office Documents with PHPPEAR Blog: Request for ideas: New developer FAQPHP-Coding-Practices.com: Composing Methods: Split Temporary VariableRob Allen's Blog: Spanish versions too!
759547
Popular posts from PHPDeveloper.org for the past week:FCHouse.com: Debugging PHP5 with Eclipse PDT under OSX: a piece of cake!Tutorial: An Introduction to PHPIDS (PHP-Intrusion Detection System)Developer.com: Build Multi-lingual Websites With the Zend FrameworkPro::PHP Podcast: Newscast for June 14th, 2007Community News: VS.PHP v2.3 for Visual Studio ReleasedJob Posting: S&ME, Inc. Seeks Web Developer (Charlotte, NC)Site News: Popular Posts for the Week of 06.15.2007Nexen.net: Ext/elephpant : the furry PHP mascotJob Posting: Coolpink Seeks a PHP Developer (Leeds, Yorkshire, UK)Job Posting: BravoTECH Seeks a PHP Developer (Dallas, TX)
305676
Raphael Stolt has posted a book review of one of Manning Publishing's PHP-related books, "PHP in Action: Modern Software Practices for PHP".   Over the last few days I got the chance to skim through the upcoming Manning release "PHP in Action: Modern Software Practices for PHP" by Dagfinn ReiersÃ¸l et al. The reviewed book is seperated into four main parts, covering lots of interesting topics in a good and fluent writing style.   Raphael outlines the book, mentioning the four parts the book is divided up into:  Basic PHP tools and concepts Developing applications via Test Driven Development Web presentation and user interfaces Object-oriented development including things like database abstraction  Raphael gives the book a positive rating and recommends it for anyone that has the basics down and is looking to extend their knowledge that much more.
602187
Elizabeth Smith has posted about a new toy she received from the folks at Microsoft that adds in a missing piece of development functionality on Windows - code coverage and testing.   So this evening I managed to get PHPT running my tests (they're just basic .phpt tests but run-tests is..well flakey is a nice description some days) for my winapi php extension wrapped inside a "generic test" for Visual Studio. [...] So what did all this accomplish? I now can run my phpt tests through visual studio and collect code coverage on what theyÃ¢ÂÂre testing. Like GCOV, only for windows.   She's also included a screenshot of what the interface and results of the testing look like in the latest Visual Studio tool.
740094
In his travels as a PHP developer, Jamie Wong has gathered some helpful debugging tips that are shared in this latest post to his blog.   Here are some bugfixing rules and tips Iâve learned working all these years with PHP. I emphasize mostly on fixing bugs than preventing them, which is another subject worth of its own article. Iâve moved to Rails, but I wanted to finish this post as a farewell and thanks to every article and documentation that was useful to me. Hope this is useful to you too.   Topics covered include:  Assume nothing Turn Error Reporting to show all errors Read the error message Understand the bug "Scooby-Bug, where are you?" Get as much information as possible  Each has some explanation below it and, in some places, a bit of code to clarify the point.
695823
Travis Swicegood has made a new release of the successor to the PEAR RunTest package for PEAR2 - the new PHPT.    Since this is usable and PEAR2 is still being worked out, I've decided to release this as a standalone package for the time being with the intent of bundling it with Pyrus or including it directly in PEAR2 when PEAR2 is realized.   This provides the majority of the functionality provided by PEAR's pear run-tests command via its own phpt command and it can even provide pear style output.    Examples of its use are included as well as the method to download this latest version (via a PEAR channel, of course) or through the package's web page. Issues found with the software can be posted to the project's Google code page.
427744
The latest edition of PHP Magazine's PHPBarnstormer has been released - Issue #23.
289168
On Alexander Netkachev's blog today, there's a walk-through of a light and easy method for getting PHP and Apache up and running. It makes use of the Installer Technical Preview utility to make live simpler.    I created the installer, which primary goal is to provide the developer with command-line tools for basic Apache/PHP/MySQL management tasks.    This a preview version of AMP installer and configurator. Although, it is very far from being a real time-proven and tested installation method, with your help and effort we can make it better.    There's a link for the download and a brief How-To on using the package to get things up and running quickly. There's also two things on the To-Do list for upcoming versions - installers for various other databases and support for automatic installation of modern PHP applications (like WordPress, phpbb, etc).