Lines Matching refs:Grpc
32 $this->time = new Grpc\Timeval(1234);
39 $this->time = new Grpc\Timeval(-123);
46 $this->time = new Grpc\Timeval(0);
53 $this->time = new Grpc\Timeval(0123);
60 $this->time = new Grpc\Timeval(0x1A);
67 $this->time = new Grpc\Timeval(123.456);
74 $zero = Grpc\Timeval::zero();
75 $this->assertSame(0, Grpc\Timeval::compare($zero, $zero));
80 $zero = Grpc\Timeval::zero();
81 $past = Grpc\Timeval::infPast();
82 $this->assertLessThan(0, Grpc\Timeval::compare($past, $zero));
83 $this->assertGreaterThan(0, Grpc\Timeval::compare($zero, $past));
88 $zero = Grpc\Timeval::zero();
89 $future = Grpc\Timeval::infFuture();
90 $this->assertLessThan(0, Grpc\Timeval::compare($zero, $future));
91 $this->assertGreaterThan(0, Grpc\Timeval::compare($future, $zero));
99 $zero = Grpc\Timeval::zero();
100 $future = Grpc\Timeval::infFuture();
101 $now = Grpc\Timeval::now();
102 $this->assertLessThan(0, Grpc\Timeval::compare($zero, $now));
103 $this->assertLessThan(0, Grpc\Timeval::compare($now, $future));
108 $now = Grpc\Timeval::now();
110 $delta = new Grpc\Timeval(1000);
112 $this->assertGreaterThan(0, Grpc\Timeval::compare($deadline, $now));
117 $now = Grpc\Timeval::now();
118 $delta = new Grpc\Timeval(1000);
120 $this->assertLessThan(0, Grpc\Timeval::compare($deadline, $now));
125 $now = Grpc\Timeval::now();
126 $delta = new Grpc\Timeval(1000);
129 $this->assertSame(0, Grpc\Timeval::compare($back_to_now, $now));
134 $a = Grpc\Timeval::now();
135 $delta = new Grpc\Timeval(1000);
137 $thresh = new Grpc\Timeval(1100);
138 $this->assertTrue(Grpc\Timeval::similar($a, $b, $thresh));
139 $thresh = new Grpc\Timeval(900);
140 $this->assertFalse(Grpc\Timeval::similar($a, $b, $thresh));
146 $now = Grpc\Timeval::now();
147 $delta = new Grpc\Timeval(1000);
159 $delta = new Grpc\Timeval('abc');
167 $a = Grpc\Timeval::now();
176 $a = Grpc\Timeval::now();
185 $a = Grpc\Timeval::compare(1000, 1100);
193 $a = Grpc\Timeval::similar(1000, 1100, 1200);