Exemplo n.º 1
0
 public function testReplace()
 {
     $list = new Sabel_Util_HashList();
     $list->add("a", "1");
     $list->add("b", "2");
     $list->add("c", "3");
     $list->replace("b", "d", "4");
     $this->assertEquals(3, $list->count());
     $this->assertEquals("1", $list->get("a"));
     $this->assertNull($list->get("b"));
     $this->assertEquals("3", $list->get("c"));
     $this->assertEquals("4", $list->get("d"));
     try {
         $list->replace("z", "e", "5");
     } catch (Sabel_Exception_Runtime $e) {
         return;
     }
     $this->fail();
 }
Exemplo n.º 2
0
 public function getProcessor($name)
 {
     return $this->processorList->get($name);
 }