public function testSetVersion() { $snippet = $this->snippetFromMethod(PolicyBuilder::class, 'setVersion'); $snippet->addLocal('builder', $this->pb); $res = $snippet->invoke(); $this->assertEquals(1, $this->pb->result()['version']); }