/** * @param string $name * @return Table */ public function table($name) { $table = new Table($name); $table->setConnectionManager($this); if ($this->cacheManager) { $table->setCacheManager($this->cacheManager); } return $table; }
/** * @expectedException \RuntimeException */ public function testGetConnectionManagerShouldThrowAnExceptionIfHasNoConnectionManagerWithStrictMode() { $table = new Table('foo'); $table->getConnectionManager(); }