4 use Psr\Log\NullLogger;
5 use Wikimedia\TestingAccessWrapper;
15 $logger =
new NullLogger();
16 $cgroup =
'/sys/fs/cgroup/memory/mygroup';
25 $factory->setLogger( $logger );
28 $wrapper = TestingAccessWrapper::newFromObject(
$command );
29 $this->assertSame( $logger, $wrapper->logger );
30 $this->assertSame( $cgroup, $wrapper->cgroup );
31 $this->assertSame( $limits, $wrapper->limits );