示例#1
0
 /**
  * Test an invalid context
  * 
  * @see ContextValidation::isValidAccount()
  * @expectedException malkusch\bav\InvalidContextException
  */
 public function testInvalidContext()
 {
     $this->validation->isValidAccount("12345");
 }
示例#2
0
文件: BAV.php 项目: bmdevel/bav
 /**
  * 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);
 }