Tester\Assert::truthy PHP 메소드

truthy() 공개 정적인 메소드

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