/** * @group accessors */ public function testIsValid() { $userId = new Crypt_GPG_UserId(array('name' => 'Example User', 'valid' => true)); $this->assertTrue($userId->isValid()); $userId = new Crypt_GPG_UserId(array('name' => 'Example User', 'valid' => false)); $this->assertFalse($userId->isValid()); }