瀏覽代碼

Fix tests

Michel Salib 12 年之前
父節點
當前提交
89d7581ebf
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Tests/Serializer/XmlSerializationTest.php

+ 2 - 2
Tests/Serializer/XmlSerializationTest.php

@@ -71,7 +71,7 @@ class XmlSerializationTest extends BaseSerializationTest
 
     /**
      * @expectedException \InvalidArgumentException
-     * @expectedExceptionMessage Document types are not allowed
+     * @expectedExceptionMessage The document type "<!DOCTYPE author [<!ENTITY foo SYSTEM "php://filter/read=convert.base64-encode/resource=XmlSerializationTest.php">]>" is not allowed. If it is safe, you may add it to the whitelist configuration.
      */
     public function testExternalEntitiesAreDisabledByDefault()
     {
@@ -86,7 +86,7 @@ class XmlSerializationTest extends BaseSerializationTest
 
     /**
      * @expectedException \InvalidArgumentException
-     * @expectedExceptionMessage Document types are not allowed
+     * @expectedExceptionMessage The document type "<!DOCTYPE foo>" is not allowed. If it is safe, you may add it to the whitelist configuration.
      */
     public function testDocumentTypesAreNotAllowed()
     {