fix code when not run in a PHPUnit test mode
Merge pull request #9 from tonimunthi/develop

fix code when not run in a PHPUnit test mode