public function testLoadAndSignWithText() { $public_contents = file_get_contents($this->pubkey); $private_contents = file_get_contents($this->privkey); $key = new KeyPair(); $key->load($public_contents, $private_contents); $data_to_sign = 'The quick brown fox jumps over the lazy dog'; $signature = $key->sign($data_to_sign); $this->assertTrue($key->verify($data_to_sign, $signature)); }