/**
* @group time-sensitive
*/
class TraceableAdapterTest extends AdapterTestCase
{ protected $skippedTests =
[ 'testPrune' => 'TraceableAdapter just proxies',
];
public function createCachePool(int
$defaultLifetime = 0
): CacheItemPoolInterface
{ return new TraceableAdapter(new FilesystemAdapter('',
$defaultLifetime));
} public function testGetItemMissTrace() { $pool =
$this->
createCachePool();
$pool->
getItem('k'
);
$calls =
$pool->
getCalls();
$this->
assertCount(1,
$calls);
$call =
$calls[0
];
$this->
assertSame('getItem',
$call->name
);