Skip to content

Commit 584342d

Browse files
committed
tests
1 parent 531869d commit 584342d

4 files changed

Lines changed: 7 additions & 12 deletions

File tree

tests/Integration/IntegrationRegistryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ public static function setupIntegrationsThrowsExceptionIfValueReturnedFromOption
252252
{
253253
yield [
254254
12.34,
255-
'Expected the callback set for the "integrations" option to return a list of integrations. Got: "double".',
255+
'Expected the callback set for the "integrations" option to return a list of integrations. Got: "float".',
256256
];
257257

258258
yield [
259259
new \stdClass(),
260-
'Expected the callback set for the "integrations" option to return a list of integrations. Got: "object".',
260+
'Expected the callback set for the "integrations" option to return a list of integrations. Got: "stdClass".',
261261
];
262262
}
263263

tests/OptionsTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,11 +565,6 @@ public function testContextLinesOptionValidatesInputValue(?int $value, ?string $
565565

566566
public static function contextLinesOptionValidatesInputValueDataProvider(): \Generator
567567
{
568-
// yield [
569-
// -1,
570-
// 'The option "context_lines" with value -1 is invalid.',
571-
// ];
572-
573568
yield [
574569
0,
575570
null,

tests/StacktraceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@ public static function constructorThrowsIfFramesListContainsUnexpectedValueDataP
3939
new Frame(__FUNCTION__, __FILE__, __LINE__),
4040
10,
4141
],
42-
'/^Expected an instance of the "Sentry\\\\Frame" class\. Got: "integer"\.$/',
42+
'/^Expected an instance of the "Sentry\\\\Frame" class\. Got: "int"\.$/',
4343
];
4444

4545
yield [
4646
[(object) []],
47-
'/^Expected an instance of the "Sentry\\\\Frame" class\. Got: "object"\.$/',
47+
'/^Expected an instance of the "Sentry\\\\Frame" class\. Got: "stdClass"\.$/',
4848
];
4949

5050
yield [
5151
[new class {
5252
}],
53-
'/^Expected an instance of the "Sentry\\\\Frame" class\. Got: "object"\.$/',
53+
'/^Expected an instance of the "Sentry\\\\Frame" class\. Got: "class@anonymous.*"\.$/',
5454
];
5555
}
5656

tests/UserDataBagTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ public static function unexpectedValueForIdFieldDataProvider(): iterable
134134
{
135135
yield [
136136
12.34,
137-
'Expected an integer or string value for the $id argument. Got: "double".',
137+
'Expected an integer or string value for the $id argument. Got: "float".',
138138
];
139139

140140
yield [
141141
new \stdClass(),
142-
'Expected an integer or string value for the $id argument. Got: "object".',
142+
'Expected an integer or string value for the $id argument. Got: "stdClass".',
143143
];
144144
}
145145

0 commit comments

Comments
 (0)