Esempio n. 1
0
 public function getRealValue()
 {
     if (!$this->isValid()) {
         throw new BindingException('Not valid tuple definition');
     }
     return $this->value->buildValues($this->link);
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function buildValuesWhenInvalidBindingType()
 {
     $fixture = new DbTuple('Invalid', array(1, 2, 'String'), DbTuple::WITHOUT_PARENTHESIS);
     $this->setExpectedException(__NAMESPACE__ . '\\Binding\\BindingException', 'Invalid binding type "Invalid"');
     $fixture->buildValues($this->getMockForAbstractClass('NeoParla\\DbEscaper\\Link'));
 }