Example #1
0
 /**
  * @expectedException Exception
  */
 public function testSetCustomValues()
 {
     $this->table->setCustomValues('foo', 'bar');
     $this->assertArrayHasKey('foo', $this->table->getCustomValues());
     $this->table->setCustomValues(array('foo2' => 'bar2', 'foo3' => 'bar3'));
     $this->assertArrayHasKey('foo2', $this->table->getCustomValues());
     $this->assertArrayHasKey('foo3', $this->table->getCustomValues());
     $this->table->setCustomValues('foo', 'bar', 'baz');
     $this->assertTrue(False);
     // should throw exception before here
 }