PHP code example of dxw / codeception-notify-module

1. Go to this page and download the library: Download dxw/codeception-notify-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dxw / codeception-notify-module example snippets


$I->expectEmailRequestWithSuccessResponse();
 
$I->expectEmailRequestWithSuccessResponse('{"response":"body"}');

$I->expectEmailRequestWithFailureResponse();
 
$I->expectEmailRequestWithFailureResponse(403, '{"errors":[{"error":"AuthError", "message":"Invalid token"}]}');

$recipients = $I->getRecipientEmailAddresses();

$I->seeLastEmailWasSentTo('[email protected]');

$I->seeNotifyReceivedEmailRequests(5)
bash
vendor/bin/php-cs-fixer fix