[
https://issues.apache.org/jira/browse/NETBEANS-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16992037#comment-16992037
]
Junichi Yamamoto commented on NETBEANS-3560:
--------------------------------------------
[~Kacer] Great, Thank you!
> Codeception - warning in log does not mark test as failed
> ---------------------------------------------------------
>
> Key: NETBEANS-3560
> URL: https://issues.apache.org/jira/browse/NETBEANS-3560
> Project: NetBeans
> Issue Type: Bug
> Components: php - Codeception
> Affects Versions: 11.2
> Reporter: Tomáš Procházka
> Assignee: Tomáš Procházka
> Priority: Major
> Labels: pull-request-available
> Fix For: 11.3
>
> Attachments: codeceptionlog.xml
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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:
> {code:php}
> 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 );
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists