getFileName(); $this->assertNotFalse($file); $lines = file($file, FILE_IGNORE_NEW_LINES); $this->assertIsArray($lines); $slice = array_slice($lines, $ref->getStartLine() - 1, $ref->getEndLine() - $ref->getStartLine() + 1); return implode("\n", $slice); } public function testGetCartdataListBatchLoadsMemberAggregate(): void { $body = $this->methodBody(CartService::class, 'getCartdataList'); $this->assertStringContainsString('MemberActivityItemsAggregateService', $body); $this->assertStringContainsString('getLists', $body); $this->assertStringContainsString("'aggregate_num'", $body); $this->assertStringContainsString("'limit_num'", $body); } }