15, 'workers' => 2, 'maxqueue' => 50, ]; parent::__construct( $conf, $type, $key ); $this->mockAcquire = $conf['mockAcquire'] ?? null; $this->mockRelease = $conf['mockRelease'] ?? null; } public function acquireForMe( $timeout = null ) { return $this->mockAcquire ?? Status::newGood( PoolCounter::QUEUE_FULL ); } public function acquireForAnyone( $timeout = null ) { return $this->mockAcquire ?? Status::newGood( PoolCounter::QUEUE_FULL ); } public function release() { return $this->mockRelease ?? Status::newGood( PoolCounter::NOT_LOCKED ); } }