public function getRealValue() { if (!$this->isValid()) { throw new BindingException('Not valid tuple definition'); } return $this->value->buildValues($this->link); }
/** * @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')); }