PHP Class Alex\MailCatcher\Behat\MailCatcherContext

Author: Alexandre Salomé ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: alexandresalome/mailcatcher

Protected Properties

Property Type Description
$currentMessage Alex\MailCatcher\Message | null
$mailCatcherClient Alex\MailCatcher\Client | null This property is duplicated from MailCatcherTrait for support in PHP 5.3
$purgeBeforeScenario boolean

Public Methods

Method Description
beforeScenario ( )
getMailCatcherClient ( ) : Alex\MailCatcher\Client This method is duplicated from MailCatcherTrait, for support in PHP 5.3
getTranslationResources ( ) : array Returns list of definition translation resources paths.
openMailContaining ( $value )
openMailFrom ( $value )
openMailSubject ( $value )
openMailTo ( $value )
purge ( )
seeInMail ( $text )
seeMailContaining ( $value )
seeMailFrom ( $value )
seeMailSubject ( $value )
seeMailTo ( $value )
setMailCatcherClient ( Alex\MailCatcher\Client $client ) This method is duplicated from MailCatcherTrait, for support in PHP 5.3
setMailCatcherConfiguration ( boolean $purgeBeforeScenario = true ) Sets mailcatcher configuration.
verifyMailsSent ( $count )

Protected Methods

Method Description
findMail ( $type, $value ) : Message This method is duplicated from MailCatcherTrait, for support in PHP 5.3

Private Methods

Method Description
getCrawler ( Message $message ) : Crawler
getCurrentMessage ( ) : Message | null

Method Details

beforeScenario() public method

public beforeScenario ( )

findMail() protected method

This method is duplicated from MailCatcherTrait, for support in PHP 5.3
protected findMail ( $type, $value ) : Message
return Alex\MailCatcher\Message

getMailCatcherClient() public method

Returns the mailcatcher client.
public getMailCatcherClient ( ) : Alex\MailCatcher\Client
return Alex\MailCatcher\Client

getTranslationResources() public static method

Returns list of definition translation resources paths.
public static getTranslationResources ( ) : array
return array

openMailContaining() public method

public openMailContaining ( $value )

openMailFrom() public method

public openMailFrom ( $value )

openMailSubject() public method

public openMailSubject ( $value )

openMailTo() public method

public openMailTo ( $value )

purge() public method

public purge ( )

seeInMail() public method

public seeInMail ( $text )

seeMailContaining() public method

public seeMailContaining ( $value )

seeMailFrom() public method

public seeMailFrom ( $value )

seeMailSubject() public method

public seeMailSubject ( $value )

seeMailTo() public method

public seeMailTo ( $value )

setMailCatcherClient() public method

Sets the mailcatcher client.
public setMailCatcherClient ( Alex\MailCatcher\Client $client )
$client Alex\MailCatcher\Client a mailcatcher client

setMailCatcherConfiguration() public method

Sets mailcatcher configuration.
public setMailCatcherConfiguration ( boolean $purgeBeforeScenario = true )
$purgeBeforeScenario boolean set false if you don't want context to purge before scenario

verifyMailsSent() public method

public verifyMailsSent ( $count )

Property Details

$currentMessage protected property

protected Message,Alex\MailCatcher|null $currentMessage
return Alex\MailCatcher\Message | null

$mailCatcherClient protected property

This property is duplicated from MailCatcherTrait for support in PHP 5.3
protected Client,Alex\MailCatcher|null $mailCatcherClient
return Alex\MailCatcher\Client | null

$purgeBeforeScenario protected property

protected bool $purgeBeforeScenario
return boolean