Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3560

Codeception - warning in log does not mark test as failed

    XMLWordPrintableJSON

Details

    Description

      Test is marked as passing even though warning is logged and test is counted in failures.

      Log with warning is attached.

      Code to reproduce warning:

      class Bar {}
      
      class FooTest extends \PHPUnit\Framework\TestCase {
          public function testGetBar() {
              $mock = $this->createMock( Bar::class );
              $mock->expects( $this->any() )
                      ->method( 'getBarAAA' ) # <- method does not exist in class Bar
                      ->willReturn( NULL );
          }
      }
      

      Attachments

        1. codeceptionlog.xml
          0.6 kB
          Tomáš Procházka

        Issue Links

          Activity

            People

              Kacer Tomáš Procházka
              Kacer Tomáš Procházka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m