Projet

Général

Profil

Révision 27e02aed

Ajouté par Assos Assos il y a plus de 4 ans

-a

Voir les différences:

drupal7/modules/simpletest/tests/file.test
963 963
      $this->fail('Expected exception not thrown');
964 964
    }
965 965
    catch (RuntimeException $e) {
966
      $this->assertEqual("Invalid filename '$filename'", $e->getMessage());
966
      $this->assertEqual("Invalid filename '$filename'", $e->getMessage(), 'The invalid filename has been detected and RuntimeException has been thrown.');
967 967
    }
968 968

  
969 969
    // @TODO: Finally we copy a file into a directory several times, to ensure a properly iterating filename suffix.
......
1004 1004
      $this->fail('Expected exception not thrown');
1005 1005
    }
1006 1006
    catch (RuntimeException $e) {
1007
      $this->assertEqual("Invalid filename 'a\xFFtest\x80€.txt'", $e->getMessage());
1007
      $this->assertEqual("Invalid filename 'a\xFFtest\x80€.txt'", $e->getMessage(), 'The invalid destination has been detected and RuntimeException has been thrown.');
1008 1008
    }
1009 1009
  }
1010 1010

  

Formats disponibles : Unified diff