SimpleTest

.code { border-width: thin; border-style: dotted; border-color: red; size: 12pt; background: black; color: lime; } .output { border-width: thin; border-style: solid; border-color: red; size: 12pt; background: black; color: cyan; } div.indent { margin-left: 1.5em; width: 100%; } A while back I was working on a site, and as I was writing the back end and making sure that it works properly I thought to myself "If .NET has nunit, and Java has junit, does PHP have phpunit, or something similar?" After some digging I found the answer. The answer I found was yes! In addition to finding unit frame works for PHP I also found some for other languages like ada, haskell and so on:aunit - for Ada hunit - for Haskell ant-junit - Apache Ant's optional tasks depending on junit dbunit - DBUnit is a JUnit extension targeted for database-driven pr ojects. tagunit - for testing custom JSP tags xmlunit - for XML and so on. If you want a complete list, on the command prompt, if you're using Gentoo, just type:

Continue Reading

Eclipse, PHP, and XDebug

.code { border-width: thin; border-style: dotted; border-color: red; size: 12pt; background: black; color: lime; } .output { border-width: thin; border-style: solid; border-color: red; size: 12pt; background: black; color: cyan; } div.indent { margin-left: 1.5em; width: 100%; } In the past I've written how to use Eclipse with phpdbg and ZendDebugger. The phpdbg was short lived as it was replaced with xdebug. According to Zend's website, they say that there are no serious limitations of xdebug. However, there may be some limitations when working with other Zend modules. This is not going to be a problem seeing as all I want to do use it to debug web pages. This will work on either Windows, Linux, and possibly MacOS X. Since posting about Eclipse and Zend, it has gotten much easier to get Eclipse and configure it for PHP. Go to Eclipse's homepage. On the front page there is a link to download the IDE for other languages; click on that and get the one for PHP.

Continue Reading

Java Doc

Documentation is key when programming. There is the documentation in the code itself such as what the heck you're trying to do there. There is also the documentation that describes the functions and objects and how to use them. Luckily there is a tool that helps the programmer create nice HTML documentation based on the comments within the code. This knocks out two birds with one stone. Javadoc is the tool to use for this task. There is also PHPdoc as well for, you guessed it PHP. For this entry we'll only be concerned about Javadoc.

Continue Reading

Asus Eee PC, Wine, IE

The other day my General Manager came to me to ask if I could install Wine on the Eee PC. I thought "It's Linux, why not?" I'm working with the 701 model. The first we need to install wine. The Eee PC uses Xandros which uses the Debian Package system. Under Settings there is what looks like a program that you can use to install additional programs. Unfortunately all this is used for is updates. In order to get to where we need to be, the terminal, we need to hold ctrl+alt+T.

Continue Reading
Close Menu