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

Software RAID, Hardware RAID, and Woes Oh My!

.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%; } I woke up on Halloween to the sound of my music playing. Then all of a sudden it stopped. I got up not thinking much of it. The first thing I do when I get up in the morning is check my email. When Thunderbird didn't open and programs stopped responding I got suspicious. I dropped in to VT12 to see what was going on. What was being reported was:

Continue Reading
Close Menu