Comparator Interfaces, Classes and Traits ClosureComparator Closure comparator. Factory Prophecy comparator factory. ProphecyComparator Compares objects for equality.