/** * getClientFromPool * * @see ClientPooler * @param string $sql * @return PreparedQuery|null */ protected function getClientFromPool($sql) { return $this->getSession()->getClient($this->getPoolerType(), PreparedQuery::getSignatureFor($sql)); }
public function testConstruct() { $this->exception(function () { $this->newTestedInstance(null); })->isInstanceOf('\\PommProject\\Foundation\\Exception\\FoundationException')->message->contains('empty query')->object($this->newTestedInstance('abcd'))->isInstanceOf('\\PommProject\\Foundation\\PreparedQuery\\PreparedQuery')->string($this->newTestedInstance('abcd')->getClientIdentifier())->isEqualTo(testedClass::getSignatureFor('abcd')); }