示例#1
0
 public function test_that_it_allows_key_replacement()
 {
     $monday = WeekDay::MONDAY();
     $node = new RedBlackNode($monday, 'Monday', 1, RedBlackNode::RED);
     $sunday = WeekDay::SUNDAY();
     $node->setKey($sunday);
     $this->assertSame($sunday, $node->key());
 }