public function testSimilarPrefixes() { $this->proxy->registerContainer("a", $this->actualContainerA); $this->proxy->registerContainer("ab", $this->actualContainerB); $this->proxy->addObjAttrs($this->testObj, ["abkey" => "val"]); $this->assertTrue($this->proxy->objHasAttr($this->testObj, "abkey")); $this->assertEquals("val", $this->proxy->getObjAttrVal($this->testObj, "abkey")); $this->assertEquals("val", $this->actualContainerB->getObjAttrVal($this->testObj, "key")); }
public function testReturnedValue() { $this->assertTrue($this->attrContainer->addObjAttrs($this->testObj, ["k" => "v"]) === $this->testObj); }