public function testGettersSetters() { $notification = new Notification(array(new Device('234'), new Device('23452')), 'testing'); $parameter = new Parameters('test', $notification); $this->assertEquals('test', $parameter->getKey()); $this->assertEquals($notification, $parameter->getNotification()); $parameter->setKey('test2'); $parameter->setNotification(new Notification(array(new Device('test')))); $this->assertEquals('test2', $parameter->getKey()); $this->assertNotEquals($notification, $parameter->getNotification()); }