function testBasic() { $first = new Event("first", 1); $second = new Event("second", 2); $this->assertEquals(-1, $first->compareTo($second)); $this->assertEquals(1, $second->compareTo($first)); $this->assertEquals("first", $first->getName()); $this->assertEquals("second", $second->getName()); }