aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-03-12 14:42:37 +0100
committerprovokateurin <kate@provokateurin.de>2025-03-12 14:52:32 +0100
commit3c698c6553c5b22391aa300718c2dc1d3ebd2fe3 (patch)
tree4a0c6fad962567fbe26da9e00dc93c4ec86c7ff9 /tests/lib
parent7bcaefdaf744b8538329dcac915734f98b98aeaf (diff)
downloadnextcloud-server-fix/rich-object-strings/better-exception-messages.tar.gz
nextcloud-server-fix/rich-object-strings/better-exception-messages.zip
fix(RichObjectStrings): Make exception messages for invalid parameters more useful for debuggingfix/rich-object-strings/better-exception-messages
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/RichObjectStrings/ValidatorTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/RichObjectStrings/ValidatorTest.php b/tests/lib/RichObjectStrings/ValidatorTest.php
index c5ce1f04dad..c5f88394a33 100644
--- a/tests/lib/RichObjectStrings/ValidatorTest.php
+++ b/tests/lib/RichObjectStrings/ValidatorTest.php
@@ -39,7 +39,7 @@ class ValidatorTest extends TestCase {
$this->expectException(InvalidObjectExeption::class);
- $this->expectExceptionMessage('Object is invalid, value 123 is not a string');
+ $this->expectExceptionMessage('Object for placeholder string1 is invalid, value 123 for key key is not a string');
$v->validate('test {string1} test.', [
'string1' => [
'type' => 'user',
@@ -49,7 +49,7 @@ class ValidatorTest extends TestCase {
],
]);
- $this->expectExceptionMessage('Object is invalid, key 456 is not a string');
+ $this->expectExceptionMessage('Object for placeholder string1 is invalid, key 456 is not a string');
$v->validate('test {string1} test.', [
'string1' => [
'type' => 'user',