public function testAdditionals() { $this->assertTrue(is_array($this->message->getAllAdditionals())); $this->assertTrue(0 == count($this->message->getAllAdditionals())); $this->assertFalse($this->message->hasAdditional("foo")); $this->message->setAdditional("foo", "bar"); $this->assertEquals("bar", $this->message->getAdditional("foo")); $this->assertTrue($this->message->hasAdditional("foo")); $this->assertTrue(1 == count($this->message->getAllAdditionals())); $this->message->setAdditional("foo", "buk"); $this->assertEquals("buk", $this->message->getAdditional("foo")); $this->assertTrue(1 == count($this->message->getAllAdditionals())); $this->assertEquals(array("foo" => "buk"), $this->message->getAllAdditionals()); }