Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Test.dies

$t.dies($anonFunction, $description)

Description

Runs an anonymous function and return true if it throws an exception. Otherwise it returns false.

// Test passes (returns true)
$badFun = F { Bear.fly(); };
$t.dies($badFun, 'Bears don`t fly');