public function testAddSubScope() { $this->assertOperationIsCorrect(function (IRepository $repository) { $repository->addRange($repository->where(function ($i) { return $i > 5; })); }, $this->addSubscopeQuery()); }