/** * @expectedException Exception */ public function testSetCallbacks() { $this->table->setCallbacks('foo', 'bar'); $this->assertArrayHasKey('foo', $this->table->getCallbacks()); $this->table->setCallbacks(array('foo2' => 'bar2', 'foo3' => 'bar3')); $this->assertArrayHasKey('foo2', $this->table->getCallbacks()); $this->assertArrayHasKey('foo3', $this->table->getCallbacks()); $this->table->setCallbacks('foo', 'bar', 'baz'); $this->assertTrue(False); // should throw exception before here }