/** * Verify that the signature can be read. */ public function testReadFileSignatureFromSqon() { $file = new File('php://memory', 'w+'); $file->write(hash('sha1', 'test', true)); $file->seek(0); $reader = new Reader($file); self::assertEquals(hash('sha1', 'test', true), $reader->getSignature(), 'The signature was not properly read from the Sqon.'); }