public function testRemoveOnField() { $obj = new LeanObject("TestObject"); $obj->removeIn("tags", "frontend"); $this->assertEquals(array(), $obj->get("tags")); $obj->set("tags", array("frontend", "javascript")); $this->assertEquals(array("frontend", "javascript"), $obj->get("tags")); $obj->removeIn("tags", "javascript"); $this->assertEquals(array("frontend"), $obj->get("tags")); }