register( $container ); $stopwatch_a = $container['stopwatch']; $stopwatch_b = $container['stopwatch']; $this->assertNotSame( $stopwatch_a, $stopwatch_b ); if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', '/wp' ); define( 'WP_CONTENT_DIR', '/wp-content/' ); } Functions\expect( 'wp_normalize_path' )->zeroOrMoreTimes()->andReturnFirstArg(); $this->assertArrayHasKey( 'records', $container ); $container->extend( 'collectors', function () {} ); $provider->boot( $container ); $this->expectException( FrozenServiceException::class ); $container->extend( 'collectors', function () {} ); } }