src/Assert.php
public static function assertFalse($actual, string $message = '')
    {
        self::$count += 1;

        if (false === (bool)$actual) {
            return;
        }

        if (!$message) {
            $message = sprintf(
                'Failed asserting that %s is falsy',
                var_export($actual, true)
            );
        }
        throw new AssertionError($message);
    }
public static function assertFalse($actual, string $message = '')
    {
        self::$count += 1;

        if (false === (bool)$actual) {
            return;
        }

        if (!$message) {
            $message = sprintf(
                'Failed asserting that %s is falsy',
                var_export($actual, true)
            );
        }
        throw new AssertionError($message);
    }
public static function assertFalse ( $ actual , string $ message = '' ) { self :: $ count += 1 ; if ( false === ( bool ) $ actual ) { return ; } if ( ! $ message ) { $ message = sprintf ( 'Failed asserting that %s is falsy' , var_export ( $ actual , true ) ) ; } throw new AssertionError ( $ message ) ; }
Test if the value is falsy

@example
\Cundd\TestFlight\Assert::assertFalse(false);
\Cundd\TestFlight\Assert::assertFalse(0);
\Cundd\TestFlight\Assert::assertFalse('');
\Cundd\TestFlight\Assert::assertFalse(null);
\Cundd\TestFlight\Assert::assertFalse([]);
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertFalse(true); });
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertFalse(1); });
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertFalse(' '); });
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertFalse('1'); });
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertFalse(new stdClass()); });
test_flight_throws(function() { \Cundd\TestFlight\Assert::assertFalse([1]); });

@param mixed  $actual
@param string $message
@throws AssertionError if the value is false, null, 0, '', '0', ...
Test if the value is falsy