public function testSetEngine() { $engine = new Crypt_GPG_Engine($this->getOptions()); $gpg = new Crypt_GPG(); $gpg->setEngine($engine); $homedirConstraint = $this->attribute($this->attributeEqualTo('_homedir', __DIR__ . '/' . self::HOMEDIR), 'engine'); $this->assertThat($gpg, $homedirConstraint, 'Engine was not set properly.'); }