Ejemplo n.º 1
0
 private function givenCharacterHasCodepointWithValue(Character $character, $value)
 {
     $character->getCodepoint()->willReturn(Codepoint::fromInt($value));
     $character->getCodepointValue()->willReturn($value);
 }
Ejemplo n.º 2
0
 /**
  * @param Character $character
  * @param Script $script
  */
 protected function givenCharacterResidesInScript($character, $script)
 {
     $general = new General(new General\Names(new General\Name\Unassigned()), new Block(Block::CYRILLIC), new General\Version(General\Version::UNKNOWN), new GeneralCategory(GeneralCategory::LETTER_TITLECASE), $script);
     $character->getGeneralProperties()->willReturn($general);
 }
 public function it_notifies_observers_when_characters_are_added(\SplObserver $observer, Character $character)
 {
     $observer->update($this)->shouldBeCalled();
     $this->attach($observer);
     $this->addMany(Character\Collection::fromArray([$character->getWrappedObject()]));
 }