20 $logger =
new NullLogger();
21 $cgroup =
'/sys/fs/cgroup/memory/mygroup';
30 $factory->setLogger( $logger );
31 $factory->logStderr();
33 $this->assertInstanceOf( Command::class,
$command );
35 $wrapper = TestingAccessWrapper::newFromObject(
$command );
36 $this->assertSame( $logger, $wrapper->logger );
37 $this->assertSame( $cgroup, $wrapper->cgroup );
38 $this->assertSame( $limits, $wrapper->limits );
39 $this->assertTrue( $wrapper->doLogStderr );