First stab at phpconsole testing

Signed-off-by: Peter Legierski <peter@legierski.net>