public function testCheckWithStrippedDangerousId()
 {
     $audio = new Audio("dangerous id");
     set_error_handler(function () {
     });
     $elementId = UniqueID::check($audio);
     restore_error_handler();
     $this->assertEquals("dangerousid", $elementId);
     $this->assertEquals("dangerousid", $audio->getId());
 }
Beispiel #2
0
 /**
  * @see Identifiable::checkId()
  */
 public function checkId()
 {
     return UniqueID::check($this);
 }