| @@ 116-126 (lines=11) @@ | ||
| 113 | $this->assertFalse($filter['related_agents']); |
|
| 114 | } |
|
| 115 | ||
| 116 | public function testSince() |
|
| 117 | { |
|
| 118 | $timestamp = \DateTime::createFromFormat(\DateTime::ISO8601, '2013-05-18T05:32:34Z'); |
|
| 119 | $this->statementsFilter->since($timestamp); |
|
| 120 | $filter = $this->statementsFilter->getFilter(); |
|
| 121 | ||
| 122 | $this->assertEquals( |
|
| 123 | '2013-05-18T05:32:34+00:00', |
|
| 124 | $filter['since'] |
|
| 125 | ); |
|
| 126 | } |
|
| 127 | ||
| 128 | public function testUntil() |
|
| 129 | { |
|
| @@ 128-138 (lines=11) @@ | ||
| 125 | ); |
|
| 126 | } |
|
| 127 | ||
| 128 | public function testUntil() |
|
| 129 | { |
|
| 130 | $timestamp = \DateTime::createFromFormat(\DateTime::ISO8601, '2013-05-18T05:32:34Z'); |
|
| 131 | $this->statementsFilter->until($timestamp); |
|
| 132 | $filter = $this->statementsFilter->getFilter(); |
|
| 133 | ||
| 134 | $this->assertEquals( |
|
| 135 | '2013-05-18T05:32:34+00:00', |
|
| 136 | $filter['until'] |
|
| 137 | ); |
|
| 138 | } |
|
| 139 | ||
| 140 | public function testLimit() |
|
| 141 | { |
|