public function testComparingToIncompatibleTypeThrowsException() { $object = new NumericContainer(0); $compared = $this->getMock('\\tjsd\\collections\\types\\Comparable'); $this->setExpectedException('\\InvalidArgumentException'); $object->compareTo($compared); }