We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af6e2f5 commit 586d049Copy full SHA for 586d049
tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php
@@ -47,6 +47,11 @@ public function testExtension(): void
47
]);
48
}
49
50
+ public function testBug68(): void
51
+ {
52
+ $this->analyse([__DIR__ . '/data/bug-68.php'], []);
53
+ }
54
+
55
public function testBug85(): void
56
{
57
$this->analyse([__DIR__ . '/data/bug-85.php'], []);
tests/Type/WebMozartAssert/data/bug-68.php
@@ -0,0 +1,16 @@
1
+<?php
2
3
+declare(strict_types=1);
4
5
+namespace WebmozartAssertBug68;
6
7
+use Webmozart\Assert\Assert;
8
9
+$encryptedValue = "some value";
10
+$valueParts = explode(':', $encryptedValue);
11
12
+Assert::count(
13
+ $valueParts,
14
+ 2,
15
+ 'Encrypted secret parameter was expected to consist of 2 parts separated by a colon'
16
+);
0 commit comments