public function testLimit() { $snippet = $this->snippetFromMethod(Query::class, 'limit'); $snippet->addLocal('query', $this->query); $snippet->invoke(); $this->assertEquals(50, $this->query->queryObject()['limit']); }