Blog Tag: Web-nerdism
Testing Should Be Hilarious
2 Comments | Latest by: Karin | Add A Comment! »»
I just wrote the following code. All I'm doing here is simply making sure an include file is found properly, so it's function can be called:
<?php
include_once('system/stats/admin.php');
return Notify_admin_main();
?>
# system/stats/admin.php
<?php
function Notify_admin_main()
{
die('smell my butt');
}
?>
I crack myself up!
Obviously:
- I edited the die message for this entry. In dev it was dirtier.
- When I can see 'smell my butt' on the web, I'll immediately be replacing the Notify_admin_main() function with something useful.
Dare to be happy! And silly...