Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 621
Zeile 597... Zeile 597...
597
    public function expectException(string $exception): void
597
    public function expectException(string $exception): void
598
    {
598
    {
599
        // @codeCoverageIgnoreStart
599
        // @codeCoverageIgnoreStart
600
        switch ($exception) {
600
        switch ($exception) {
601
            case Deprecated::class:
601
            case Deprecated::class:
602
                $this->addWarning('Support for using expectException() with PHPUnit\Framework\Error\Deprecated is deprecated and will be removed in PHPUnit 10. Use expectDeprecation() instead.');
602
                $this->addWarning('Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10.');
Zeile 603... Zeile 603...
603
 
603
 
Zeile 604... Zeile 604...
604
                break;
604
                break;
605
 
605
 
Zeile 606... Zeile 606...
606
            case Error::class:
606
            case Error::class:
Zeile 607... Zeile 607...
607
                $this->addWarning('Support for using expectException() with PHPUnit\Framework\Error\Error is deprecated and will be removed in PHPUnit 10. Use expectError() instead.');
607
                $this->addWarning('Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.');
608
 
608
 
Zeile 609... Zeile 609...
609
                break;
609
                break;
Zeile 610... Zeile 610...
610
 
610
 
611
            case Notice::class:
611
            case Notice::class:
Zeile 612... Zeile 612...
612
                $this->addWarning('Support for using expectException() with PHPUnit\Framework\Error\Notice is deprecated and will be removed in PHPUnit 10. Use expectNotice() instead.');
612
                $this->addWarning('Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10.');
613
 
613
 
614
                break;
614
                break;
Zeile 656... Zeile 656...
656
    public function expectNotToPerformAssertions(): void
656
    public function expectNotToPerformAssertions(): void
657
    {
657
    {
658
        $this->doesNotPerformAssertions = true;
658
        $this->doesNotPerformAssertions = true;
659
    }
659
    }
Zeile -... Zeile 660...
-
 
660
 
-
 
661
    /**
-
 
662
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
660
 
663
     */
661
    public function expectDeprecation(): void
664
    public function expectDeprecation(): void
-
 
665
    {
-
 
666
        $this->addWarning('Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10.');
662
    {
667
 
663
        $this->expectedException = Deprecated::class;
668
        $this->expectedException = Deprecated::class;
Zeile -... Zeile 669...
-
 
669
    }
-
 
670
 
-
 
671
    /**
664
    }
672
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
665
 
673
     */
-
 
674
    public function expectDeprecationMessage(string $message): void
-
 
675
    {
666
    public function expectDeprecationMessage(string $message): void
676
        $this->addWarning('Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10.');
667
    {
677
 
Zeile -... Zeile 678...
-
 
678
        $this->expectExceptionMessage($message);
-
 
679
    }
-
 
680
 
668
        $this->expectExceptionMessage($message);
681
    /**
669
    }
682
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
-
 
683
     */
-
 
684
    public function expectDeprecationMessageMatches(string $regularExpression): void
670
 
685
    {
671
    public function expectDeprecationMessageMatches(string $regularExpression): void
686
        $this->addWarning('Expecting E_DEPRECATED and E_USER_DEPRECATED is deprecated and will no longer be possible in PHPUnit 10.');
Zeile -... Zeile 687...
-
 
687
 
-
 
688
        $this->expectExceptionMessageMatches($regularExpression);
-
 
689
    }
672
    {
690
 
673
        $this->expectExceptionMessageMatches($regularExpression);
691
    /**
-
 
692
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
-
 
693
     */
674
    }
694
    public function expectNotice(): void
675
 
695
    {
Zeile -... Zeile 696...
-
 
696
        $this->addWarning('Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10.');
-
 
697
 
-
 
698
        $this->expectedException = Notice::class;
676
    public function expectNotice(): void
699
    }
677
    {
700
 
-
 
701
    /**
-
 
702
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
678
        $this->expectedException = Notice::class;
703
     */
679
    }
704
    public function expectNoticeMessage(string $message): void
Zeile -... Zeile 705...
-
 
705
    {
-
 
706
        $this->addWarning('Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10.');
-
 
707
 
680
 
708
        $this->expectExceptionMessage($message);
681
    public function expectNoticeMessage(string $message): void
709
    }
-
 
710
 
-
 
711
    /**
682
    {
712
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
683
        $this->expectExceptionMessage($message);
713
     */
Zeile -... Zeile 714...
-
 
714
    public function expectNoticeMessageMatches(string $regularExpression): void
-
 
715
    {
-
 
716
        $this->addWarning('Expecting E_STRICT, E_NOTICE, and E_USER_NOTICE is deprecated and will no longer be possible in PHPUnit 10.');
684
    }
717
 
685
 
718
        $this->expectExceptionMessageMatches($regularExpression);
-
 
719
    }
-
 
720
 
686
    public function expectNoticeMessageMatches(string $regularExpression): void
721
    /**
687
    {
722
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
Zeile -... Zeile 723...
-
 
723
     */
-
 
724
    public function expectWarning(): void
-
 
725
    {
688
        $this->expectExceptionMessageMatches($regularExpression);
726
        $this->addWarning('Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.');
689
    }
727
 
-
 
728
        $this->expectedException = WarningError::class;
-
 
729
    }
690
 
730
 
691
    public function expectWarning(): void
731
    /**
Zeile -... Zeile 732...
-
 
732
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
-
 
733
     */
-
 
734
    public function expectWarningMessage(string $message): void
692
    {
735
    {
693
        $this->expectedException = WarningError::class;
736
        $this->addWarning('Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.');
-
 
737
 
-
 
738
        $this->expectExceptionMessage($message);
694
    }
739
    }
695
 
740
 
Zeile -... Zeile 741...
-
 
741
    /**
-
 
742
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
-
 
743
     */
696
    public function expectWarningMessage(string $message): void
744
    public function expectWarningMessageMatches(string $regularExpression): void
697
    {
745
    {
-
 
746
        $this->addWarning('Expecting E_WARNING and E_USER_WARNING is deprecated and will no longer be possible in PHPUnit 10.');
-
 
747
 
698
        $this->expectExceptionMessage($message);
748
        $this->expectExceptionMessageMatches($regularExpression);
699
    }
749
    }
Zeile -... Zeile 750...
-
 
750
 
-
 
751
    /**
-
 
752
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
700
 
753
     */
701
    public function expectWarningMessageMatches(string $regularExpression): void
754
    public function expectError(): void
-
 
755
    {
-
 
756
        $this->addWarning('Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.');
702
    {
757
 
703
        $this->expectExceptionMessageMatches($regularExpression);
758
        $this->expectedException = Error::class;
Zeile -... Zeile 759...
-
 
759
    }
-
 
760
 
-
 
761
    /**
704
    }
762
     * @deprecated https://github.com/sebastianbergmann/phpunit/issues/5062
705
 
763
     */
-
 
764
    public function expectErrorMessage(string $message): void
-
 
765
    {
706
    public function expectError(): void
766
        $this->addWarning('Expecting E_ERROR and E_USER_ERROR is deprecated and will no longer be possible in PHPUnit 10.');
707
    {
767
 
Zeile 708... Zeile 768...
708
        $this->expectedException = Error::class;
768
        $this->expectExceptionMessage($message);
709
    }
769
    }
Zeile 1823... Zeile 1883...
1823
     * @psalm-template RealInstanceType of object
1883
     * @psalm-template RealInstanceType of object
1824
     *
1884
     *
1825
     * @psalm-param class-string<RealInstanceType>|string $originalClassName
1885
     * @psalm-param class-string<RealInstanceType>|string $originalClassName
1826
     *
1886
     *
1827
     * @psalm-return class-string<MockObject&RealInstanceType>
1887
     * @psalm-return class-string<MockObject&RealInstanceType>
-
 
1888
     *
-
 
1889
     * @deprecated
1828
     */
1890
     */
1829
    protected function getMockClass(string $originalClassName, $methods = [], array $arguments = [], string $mockClassName = '', bool $callOriginalConstructor = false, bool $callOriginalClone = true, bool $callAutoload = true, bool $cloneArguments = false): string
1891
    protected function getMockClass(string $originalClassName, $methods = [], array $arguments = [], string $mockClassName = '', bool $callOriginalConstructor = false, bool $callOriginalClone = true, bool $callAutoload = true, bool $cloneArguments = false): string
1830
    {
1892
    {
-
 
1893
        $this->addWarning('PHPUnit\Framework\TestCase::getMockClass() is deprecated and will be removed in PHPUnit 10.');
-
 
1894
 
1831
        $this->recordDoubledType($originalClassName);
1895
        $this->recordDoubledType($originalClassName);
Zeile 1832... Zeile 1896...
1832
 
1896
 
1833
        $mock = $this->getMockObjectGenerator()->getMock(
1897
        $mock = $this->getMockObjectGenerator()->getMock(
1834
            $originalClassName,
1898
            $originalClassName,