/** * @expectedException \Collections\LookupException */ function testGetMissingSmallerThan() { $object = new AvlTree(); $object->add(2); $object->get(1); }
function testGetLeftSubTree() { $object = new AvlTree(); $object->add(2); $object->add(1); $this->assertEquals(1, $object->get(1)); }