Changeset 60729 for trunk/tests/phpunit/tests/query/cacheResults.php
- Timestamp:
- 09/11/2025 02:45:56 PM (5 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/cacheResults.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/cacheResults.php
r59979 r60729 103 103 104 104 $reflection = new ReflectionMethod( $query1, 'generate_cache_key' ); 105 $reflection->setAccessible( true ); 105 if ( PHP_VERSION_ID < 80100 ) { 106 $reflection->setAccessible( true ); 107 } 106 108 107 109 $cache_key_1 = $reflection->invoke( $query1, $query_vars, $request ); … … 159 161 160 162 $reflection = new ReflectionMethod( $query1, 'generate_cache_key' ); 161 $reflection->setAccessible( true ); 163 if ( PHP_VERSION_ID < 80100 ) { 164 $reflection->setAccessible( true ); 165 } 162 166 163 167 $cache_key_1 = $reflection->invoke( $query1, $query_vars, $request ); … … 192 196 193 197 $reflection = new ReflectionMethod( $query1, 'generate_cache_key' ); 194 $reflection->setAccessible( true ); 198 if ( PHP_VERSION_ID < 80100 ) { 199 $reflection->setAccessible( true ); 200 } 195 201 196 202 $cache_key_1 = $reflection->invoke( $query1, $query_vars, $request1 ); … … 228 234 229 235 $reflection_q1 = new ReflectionProperty( $query1, 'query_cache_key' ); 230 $reflection_q1->setAccessible( true ); 236 if ( PHP_VERSION_ID < 80100 ) { 237 $reflection_q1->setAccessible( true ); 238 } 231 239 232 240 $reflection_q2 = new ReflectionProperty( $query2, 'query_cache_key' ); 233 $reflection_q2->setAccessible( true ); 241 if ( PHP_VERSION_ID < 80100 ) { 242 $reflection_q2->setAccessible( true ); 243 } 234 244 235 245 $this->assertNotSame( $request1, $request2, 'Queries should not match' ); … … 289 299 290 300 $reflection_q1 = new ReflectionProperty( $query1, 'query_cache_key' ); 291 $reflection_q1->setAccessible( true ); 301 if ( PHP_VERSION_ID < 80100 ) { 302 $reflection_q1->setAccessible( true ); 303 } 292 304 293 305 $reflection_q2 = new ReflectionProperty( $query2, 'query_cache_key' ); 294 $reflection_q2->setAccessible( true ); 306 if ( PHP_VERSION_ID < 80100 ) { 307 $reflection_q2->setAccessible( true ); 308 } 295 309 296 310 $this->assertNotSame( $request1, $request2, 'Queries should not match' ); … … 346 360 347 361 $reflection_q1 = new ReflectionProperty( $query1, 'query_cache_key' ); 348 $reflection_q1->setAccessible( true ); 362 if ( PHP_VERSION_ID < 80100 ) { 363 $reflection_q1->setAccessible( true ); 364 } 349 365 350 366 $reflection_q2 = new ReflectionProperty( $query2, 'query_cache_key' ); 351 $reflection_q2->setAccessible( true ); 367 if ( PHP_VERSION_ID < 80100 ) { 368 $reflection_q2->setAccessible( true ); 369 } 352 370 353 371 $this->assertNotSame( $request1, $request2, 'Queries should not match' ); … … 386 404 387 405 $reflection_q1 = new ReflectionProperty( $query1, 'query_cache_key' ); 388 $reflection_q1->setAccessible( true ); 406 if ( PHP_VERSION_ID < 80100 ) { 407 $reflection_q1->setAccessible( true ); 408 } 389 409 390 410 $reflection_q2 = new ReflectionProperty( $query2, 'query_cache_key' ); 391 $reflection_q2->setAccessible( true ); 411 if ( PHP_VERSION_ID < 80100 ) { 412 $reflection_q2->setAccessible( true ); 413 } 392 414 393 415 $this->assertSame( $request1, $request2, 'Queries should match' );
Note: See TracChangeset
for help on using the changeset viewer.