public function testSet()
 {
     $profile1 = new Profile($this->getFaker()->unique()->word, $this->getFaker()->unique()->word);
     $profile1Name = $this->getFaker()->unique()->word;
     $profile2 = new Profile($this->getFaker()->unique()->word, $this->getFaker()->unique()->word);
     $profile2Name = $this->getFaker()->unique()->word;
     $registry = new ProfileRegistry();
     $registry->set($profile1Name, $profile1)->set($profile2Name, $profile2);
     $this->profileRegistryBuilder->set($profile1Name, $profile1)->set($profile2Name, $profile2->getCipher(), $profile2->getKeyName());
     $this->assertEquals($registry, $this->profileRegistryBuilder->build());
 }
예제 #2
0
 /**
  * @return ProfileRegistry
  */
 protected function getDefaultProfileRegistry()
 {
     return ProfileRegistryBuilder::newInstance();
 }