update patch 1

This commit is contained in:
fiqhpratama
2024-12-02 01:18:34 +07:00
parent 453d9bb470
commit 25026b0a85
3380 changed files with 103529 additions and 363623 deletions
@@ -26,7 +26,7 @@ final class EmailAddressContains extends Constraint
public function toString(): string
{
return sprintf('contains address "%s" with value "%s"', $this->headerName, $this->expectedValue);
return \sprintf('contains address "%s" with value "%s"', $this->headerName, $this->expectedValue);
}
/**
@@ -59,6 +59,6 @@ final class EmailAddressContains extends Constraint
*/
protected function failureDescription($message): string
{
return sprintf('the Email %s (value is %s)', $this->toString(), $message->getHeaders()->get($this->headerName)->getBodyAsString());
return \sprintf('the Email %s (value is %s)', $this->toString(), $message->getHeaders()->get($this->headerName)->getBodyAsString());
}
}
@@ -19,13 +19,12 @@ final class EmailAttachmentCount extends Constraint
{
public function __construct(
private int $expectedValue,
private ?string $transport = null,
) {
}
public function toString(): string
{
return sprintf('has sent "%d" attachment(s)', $this->expectedValue);
return \sprintf('has sent "%d" attachment(s)', $this->expectedValue);
}
/**
+1 -1
View File
@@ -23,7 +23,7 @@ final class EmailHasHeader extends Constraint
public function toString(): string
{
return sprintf('has header "%s"', $this->headerName);
return \sprintf('has header "%s"', $this->headerName);
}
/**
+2 -2
View File
@@ -25,7 +25,7 @@ final class EmailHeaderSame extends Constraint
public function toString(): string
{
return sprintf('has header "%s" with value "%s"', $this->headerName, $this->expectedValue);
return \sprintf('has header "%s" with value "%s"', $this->headerName, $this->expectedValue);
}
/**
@@ -45,7 +45,7 @@ final class EmailHeaderSame extends Constraint
*/
protected function failureDescription($message): string
{
return sprintf('the Email %s (value is %s)', $this->toString(), $this->getHeaderValue($message) ?? 'null');
return \sprintf('the Email %s (value is %s)', $this->toString(), $this->getHeaderValue($message) ?? 'null');
}
private function getHeaderValue($message): ?string
@@ -24,7 +24,7 @@ final class EmailHtmlBodyContains extends Constraint
public function toString(): string
{
return sprintf('contains "%s"', $this->expectedText);
return \sprintf('contains "%s"', $this->expectedText);
}
/**
@@ -23,7 +23,7 @@ final class EmailSubjectContains extends Constraint
public function toString(): string
{
return sprintf('contains subject with value "%s"', $this->expectedSubjectValue);
return \sprintf('contains subject with value "%s"', $this->expectedSubjectValue);
}
protected function matches($other): bool
@@ -39,7 +39,7 @@ final class EmailSubjectContains extends Constraint
{
$message = 'The email subject '.$this->toString();
if ($other instanceof Email) {
$message .= sprintf('. The subject was: "%s"', $other->getSubject() ?? '<empty>');
$message .= \sprintf('. The subject was: "%s"', $other->getSubject() ?? '<empty>');
}
return $message;
@@ -24,7 +24,7 @@ final class EmailTextBodyContains extends Constraint
public function toString(): string
{
return sprintf('contains "%s"', $this->expectedText);
return \sprintf('contains "%s"', $this->expectedText);
}
/**