public function testSetMethods() { $methods = array(array('method_name1', array(array('component', 'reference_to_component'))) . array('another_method', array())); $this->object->setMethods($methods); $this->assertThat($methods, $this->equalTo($this->object->getMethods())); }