Tester\Assert::truthy PHP Méthode

truthy() public static méthode

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