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