public function testIgnoreEndOfLineComment()
 {
     $string = new \webignition\DisallowedCharacterTerminatedString\DisallowedCharacterTerminatedString();
     $string->addDisallowedCharacterCode(ord('#'));
     $string->set('value #comment');
     $this->assertEquals('value ', $string->get());
 }
 public function testCastingToString()
 {
     $string = new \webignition\DisallowedCharacterTerminatedString\DisallowedCharacterTerminatedString();
     $string->set('input value');
     $this->assertEquals('input value', (string) $string);
 }