Skip to content

Commit 566116c

Browse files
authored
chore: Update WebmozartAssert (#1556)
Updates `webmozart/assert` from 1.11.0 to 1.12.0
1 parent 05d205d commit 566116c

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"symfony/process": "^6.4.0 || ^7.0.0",
4343
"symfony/var-dumper": "^6.4.0 || ^7.0.0",
4444
"thecodingmachine/safe": "^2.5 || ^3.0",
45-
"webmozart/assert": "^1.11"
45+
"webmozart/assert": "^1.12"
4646
},
4747
"require-dev": {
4848
"ext-xml": "*",

composer.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/BoxTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ public function test_it_cannot_add_an_non_existent_file_to_the_phar(): void
507507
self::fail('Expected exception to be thrown.');
508508
} catch (InvalidArgumentException $exception) {
509509
self::assertSame(
510-
'The file "/nowhere/foo" does not exist.',
510+
'The path "/nowhere/foo" is not a file.',
511511
$exception->getMessage(),
512512
);
513513
self::assertNull($exception->getPrevious());
@@ -1068,7 +1068,7 @@ public function test_it_cannot_add_an_non_existent_files_to_the_phar(): void
10681068
self::fail('Expected exception to be thrown.');
10691069
} catch (InvalidArgumentException $exception) {
10701070
self::assertSame(
1071-
'The file "/nowhere/foo" does not exist.',
1071+
'The path "/nowhere/foo" is not a file.',
10721072
$exception->getMessage(),
10731073
);
10741074
self::assertNull($exception->getPrevious());
@@ -1273,7 +1273,7 @@ public function test_cannot_set_non_existent_file_as_stub_file(): void
12731273
self::fail('Expected exception to be thrown.');
12741274
} catch (Exception $exception) {
12751275
self::assertSame(
1276-
'The file "/does/not/exist" does not exist.',
1276+
'The path "/does/not/exist" is not a file.',
12771277
$exception->getMessage(),
12781278
);
12791279
}
@@ -1545,7 +1545,7 @@ public function test_it_cannot_sign_the_phar_with_a_non_existent_file_as_private
15451545
self::fail('Expected exception to be thrown.');
15461546
} catch (InvalidArgumentException $exception) {
15471547
self::assertSame(
1548-
'The file "/does/not/exist" does not exist.',
1548+
'The path "/does/not/exist" is not a file.',
15491549
$exception->getMessage(),
15501550
);
15511551
}

tests/Configuration/ConfigurationFileNoConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function test_throws_an_error_if_a_non_existent_file_is_found_via_the_com
262262
self::fail('Expected exception to be thrown.');
263263
} catch (InvalidArgumentException $exception) {
264264
self::assertSame(
265-
'The file "'.$this->tmp.'/file1" does not exist.',
265+
'The path "'.$this->tmp.'/file1" is not a file.',
266266
$exception->getMessage(),
267267
);
268268
}

tests/Configuration/ConfigurationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ public function test_it_cannot_get_the_main_script_if_file_does_not_exists(): vo
972972
self::fail('Expected exception to be thrown.');
973973
} catch (InvalidArgumentException $exception) {
974974
self::assertSame(
975-
"The file \"{$this->tmp}/test.php\" does not exist.",
975+
"The path \"{$this->tmp}/test.php\" is not a file.",
976976
$exception->getMessage(),
977977
);
978978
}
@@ -2341,7 +2341,7 @@ public function test_the_custom_banner_file_must_exists_when_provided(): void
23412341
self::fail('Expected exception to be thrown.');
23422342
} catch (InvalidArgumentException $exception) {
23432343
self::assertSame(
2344-
'The file "/does/not/exist" does not exist.',
2344+
'The path "/does/not/exist" is not a file.',
23452345
$exception->getMessage(),
23462346
);
23472347
}

tests/Console/Command/ConfigOptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function test_it_throws_an_error_when_the_config_is_invalid(): void
106106
FS::dumpFile('box.json', '{}');
107107

108108
$this->expectException(InvalidArgumentException::class);
109-
$this->expectExceptionMessage('The file "'.$this->tmp.'/index.php" does not exist.');
109+
$this->expectExceptionMessage('The path "'.$this->tmp.'/index.php" is not a file.');
110110

111111
$this->executeAndGetConfig([]);
112112
}

tests/Console/Command/DiffCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function test_it_cannot_compare_non_existent_files(): void
187187
self::fail('Expected exception to be thrown.');
188188
} catch (InvalidArgumentException $exception) {
189189
self::assertSame(
190-
'The file "unknown" does not exist.',
190+
'The path "unknown" is not a file.',
191191
$exception->getMessage(),
192192
);
193193
}

tests/Console/Command/VerifyCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function test_it_verifies_the_signature_of_the_given_file_in_debug_mode(s
123123
public function test_it_cannot_verify_an_unknown_file(): void
124124
{
125125
$this->expectException(InvalidArgumentException::class);
126-
$this->expectExceptionMessage('The file "unknown" does not exist.');
126+
$this->expectExceptionMessage('The path "unknown" is not a file.');
127127

128128
$this->commandTester->execute(
129129
[

tests/Json/JsonValidationExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function test_it_cannot_be_created_with_a_non_existent_file(): void
3333

3434
self::fail('Expected exception to be thrown');
3535
} catch (InvalidArgumentException $exception) {
36-
self::assertSame('The file "unknown file" does not exist.', $exception->getMessage());
36+
self::assertSame('The path "unknown file" is not a file.', $exception->getMessage());
3737
}
3838
}
3939

0 commit comments

Comments
 (0)