public function setUp() { $this->algorithm = $this->getMockBuilder('Emarref\\Jwt\\Algorithm\\Hs256')->setConstructorArgs(['secret'])->getMock(); $this->encryption = new Symmetric($this->algorithm); }