public function addProfile(ValidationProfile $profile)
 {
     $this->profiles[$profile->getIdentifier()] = $profile;
 }
Exemplo n.º 2
0
 /**
  * @depends testProfile2
  */
 public function testSerialization(ValidationProfile $profile)
 {
     $encode = json_encode($profile->serialize(), JSON_PRETTY_PRINT);
     $newProfile = ValidationProfile::deserializeProfile(json_decode($encode, true));
     $newProfile->validate(new TestObject1("Test 1", 22));
 }