/**
  * @dataProvider characterProvider
  * @param $characters
  * @param $result
  */
 public function testConstruct($characters, $result)
 {
     $characterSet = new CharacterSet($characters);
     $this->assertEquals($result, $characterSet->getCharacters());
     $this->assertEquals($result, $characterSet->__toString());
     $this->assertEquals($result, (string) $characterSet);
 }
 /**
  * @dataProvider castCharacterProvider
  *
  * @param $characters
  * @param $result
  */
 public function testConstructCast($characters, $result)
 {
     $characterSet = new CharacterSet($characters);
     $this->assertSame($result, $characterSet->__toString());
     $this->assertSame($result, (string) $characterSet);
 }