/**
  * Throws an exception if the settings are inconsistent.
  */
 public function validate()
 {
     if ($this->initializer) {
         Ensure::isFalse($this->initializer->getRepository() && $this->initializer->getValue(), 'It makes no sense to define initializer repository and value simultaneously for column [%s]', $this->name);
     }
 }
 public function testEnsureFalseFailed()
 {
     $this->setExpectedException(self::ENSURE_EXCEPTION, 'check 1 2 3');
     Ensure::isFalse(1 == 1, 'check %s %s %s', 1, 2, 3);
 }