Exemplo n.º 1
0
 public function testCreateEmpty()
 {
     $range = NumericRange::createEmpty();
     $this->assertInstanceOf('\\sad_spirit\\pg_wrapper\\types\\NumericRange', $range);
     $this->assertTrue($range->empty);
 }
Exemplo n.º 2
0
 protected function valuesBoth()
 {
     return array(array('empty', NumericRange::createEmpty()), array('[,)', new NumericRange()), array('("1",]', new NumericRange(1, null, false, true)), array('(,"2")', new NumericRange(null, 2, false, false)));
 }