We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28bb960 commit dea9671Copy full SHA for dea9671
1 file changed
tests/phpunit/tests/cache.php
@@ -530,7 +530,8 @@ public function test_stats_with_non_serializable_simplexml_data() {
530
// Directly inject the SimpleXMLElement into the cache storage to bypass
531
// any object-clone logic in set(), simulating a real-world scenario where
532
// a non-serializable object ends up in the cache.
533
- $cache_property = new ReflectionProperty( $this->cache, 'cache' );
+ $cache_property = new ReflectionProperty( $this->cache, 'cache' );
534
+ $cache_property->setAccessible( true );
535
$cache_data = $cache_property->getValue( $this->cache );
536
$cache_data['xml-group']['item1'] = $xml_object;
537
$cache_property->setValue( $this->cache, $cache_data );
0 commit comments