/** * Test an invalid context * * @see ContextValidation::isValidAccount() * @expectedException malkusch\bav\InvalidContextException */ public function testInvalidContext() { $this->validation->isValidAccount("12345"); }
/** * Returns true if the account is valid for the current context. * * You have to have called isValidBank() before! If the current context * is no valid bank every account will validate to true. * * @param string $account * @see isValidBank() * @see ContextValidation::isValidAccount() * @throws InvalidContextException isValidBank() was not called before. * @return bool */ public function isValidAccount($account) { return $this->contextValidation->isValidAccount($account); }