rCfg = CONFIG_PATH . 'cluster/'; @mkdir($this->rCfg, 0o777, true); @unlink($this->rCfg . 'serve_only'); } protected function tearDown(): void { @unlink($this->rCfg . 'serve_only'); } public function testNodeServeOnlyFalseWithoutTheMarker(): void { $this->assertFalse(StreamProcess::nodeServeOnly(), 'no marker → a normal node'); } public function testNodeServeOnlyTrueWithTheMarker(): void { file_put_contents($this->rCfg . 'serve_only', '2'); $this->assertTrue(StreamProcess::nodeServeOnly(), 'the Part A marker present → serve-only'); } }