Пример #1
0
 /**
  * @dataProvider dataProviderTestParse
  */
 public function testParse($string, $getWord, array $getStyles, $hasWord, $hasStyles, $isStyle)
 {
     $word = new Word($string);
     $this->assertSame($string, $word->getRawString());
     $this->assertSame($getWord, $word->getWord());
     $this->assertSame($getStyles, $word->getStyles());
     $this->assertSame($hasWord, $word->hasWord());
     $this->assertSame($hasStyles, $word->hasStyles());
     $this->assertSame($isStyle, $word->isStyle());
 }