Răsfoiți Sursa

TestHandler misleadings (#1794)

* TestHandler misleasleadings

* change other methods
Alexander Dmitryuk 2 ani în urmă
părinte
comite
b05bf55097
1 a modificat fișierele cu 32 adăugiri și 32 ștergeri
  1. 32 32
      src/Monolog/Handler/TestHandler.php

+ 32 - 32
src/Monolog/Handler/TestHandler.php

@@ -23,14 +23,14 @@ use Monolog\LogRecord;
  *
  * @author Jordi Boggiano <j.boggiano@seld.be>
  *
- * @method bool hasEmergency($record)
- * @method bool hasAlert($record)
- * @method bool hasCritical($record)
- * @method bool hasError($record)
- * @method bool hasWarning($record)
- * @method bool hasNotice($record)
- * @method bool hasInfo($record)
- * @method bool hasDebug($record)
+ * @method bool hasEmergency(string|array $recordAssertions)
+ * @method bool hasAlert(string|array $recordAssertions)
+ * @method bool hasCritical(string|array $recordAssertions)
+ * @method bool hasError(string|array $recordAssertions)
+ * @method bool hasWarning(string|array $recordAssertions)
+ * @method bool hasNotice(string|array $recordAssertions)
+ * @method bool hasInfo(string|array $recordAssertions)
+ * @method bool hasDebug(string|array $recordAssertions)
  *
  * @method bool hasEmergencyRecords()
  * @method bool hasAlertRecords()
@@ -41,32 +41,32 @@ use Monolog\LogRecord;
  * @method bool hasInfoRecords()
  * @method bool hasDebugRecords()
  *
- * @method bool hasEmergencyThatContains($message)
- * @method bool hasAlertThatContains($message)
- * @method bool hasCriticalThatContains($message)
- * @method bool hasErrorThatContains($message)
- * @method bool hasWarningThatContains($message)
- * @method bool hasNoticeThatContains($message)
- * @method bool hasInfoThatContains($message)
- * @method bool hasDebugThatContains($message)
+ * @method bool hasEmergencyThatContains(string $message)
+ * @method bool hasAlertThatContains(string $message)
+ * @method bool hasCriticalThatContains(string $message)
+ * @method bool hasErrorThatContains(string $message)
+ * @method bool hasWarningThatContains(string $message)
+ * @method bool hasNoticeThatContains(string $message)
+ * @method bool hasInfoThatContains(string $message)
+ * @method bool hasDebugThatContains(string $message)
  *
- * @method bool hasEmergencyThatMatches($message)
- * @method bool hasAlertThatMatches($message)
- * @method bool hasCriticalThatMatches($message)
- * @method bool hasErrorThatMatches($message)
- * @method bool hasWarningThatMatches($message)
- * @method bool hasNoticeThatMatches($message)
- * @method bool hasInfoThatMatches($message)
- * @method bool hasDebugThatMatches($message)
+ * @method bool hasEmergencyThatMatches(string $regex)
+ * @method bool hasAlertThatMatches(string $regex)
+ * @method bool hasCriticalThatMatches(string $regex)
+ * @method bool hasErrorThatMatches(string $regex)
+ * @method bool hasWarningThatMatches(string $regex)
+ * @method bool hasNoticeThatMatches(string $regex)
+ * @method bool hasInfoThatMatches(string $regex)
+ * @method bool hasDebugThatMatches(string $regex)
  *
- * @method bool hasEmergencyThatPasses($message)
- * @method bool hasAlertThatPasses($message)
- * @method bool hasCriticalThatPasses($message)
- * @method bool hasErrorThatPasses($message)
- * @method bool hasWarningThatPasses($message)
- * @method bool hasNoticeThatPasses($message)
- * @method bool hasInfoThatPasses($message)
- * @method bool hasDebugThatPasses($message)
+ * @method bool hasEmergencyThatPasses(callable $predicate)
+ * @method bool hasAlertThatPasses(callable $predicate)
+ * @method bool hasCriticalThatPasses(callable $predicate)
+ * @method bool hasErrorThatPasses(callable $predicate)
+ * @method bool hasWarningThatPasses(callable $predicate)
+ * @method bool hasNoticeThatPasses(callable $predicate)
+ * @method bool hasInfoThatPasses(callable $predicate)
+ * @method bool hasDebugThatPasses(callable $predicate)
  */
 class TestHandler extends AbstractProcessingHandler
 {