Webmozart\Assert\Assert::false PHP Method

false() public static method

public static false ( $value, $message = '' )
    public static function false($value, $message = '')
    {
        if (false !== $value) {
            static::reportInvalidArgument(sprintf($message ?: 'Expected a value to be false. Got: %s', static::valueToString($value)));
        }
    }

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function chooseDifferentBillingAddress()
 {
     $driver = $this->getDriver();
     if ($driver instanceof Selenium2Driver) {
         $this->getElement('different_billing_address_label')->click();
         return;
     }
     $billingAddressSwitch = $this->getElement('different_billing_address');
     Assert::false($billingAddressSwitch->isChecked(), 'Previous state of different billing address switch was true expected to be false');
     $billingAddressSwitch->check();
 }
All Usage Examples Of Webmozart\Assert\Assert::false