public function testEncryptNoPrivateKey() { $this->algorithm->expects($this->never())->method('sign'); $this->encryption->encrypt('myvalue'); }