Tester\Assert::truthy PHP Method

truthy() public static method

Checks truthy assertion.
public static truthy ( $actual, $description = NULL ) : void
return void
    public static function truthy($actual, $description = NULL)
    {
        self::$counter++;
        if (!$actual) {
            self::fail(self::describe('%1 should be truthy', $description), $actual);
        }
    }