public function testSetParams() { $this->legend->setParams(array('text' => array('foo' => 123), 'foo' => 123)); $this->assertInstanceOf('AmCharts\\Chart\\Setting\\Text', $this->legend->text()); }