PHP Class Alex\MailCatcher\Behat\MailCatcherContext

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

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 )

Méthodes protégées

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

Private Methods

Méthode Description
getCrawler ( Message $message ) : Crawler
getCurrentMessage ( ) : Message | null

Method Details

beforeScenario() public méthode

public beforeScenario ( )

findMail() protected méthode

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

getMailCatcherClient() public méthode

Returns the mailcatcher client.
public getMailCatcherClient ( ) : Alex\MailCatcher\Client
Résultat Alex\MailCatcher\Client

getTranslationResources() public static méthode

Returns list of definition translation resources paths.
public static getTranslationResources ( ) : array
Résultat array

openMailContaining() public méthode

public openMailContaining ( $value )

openMailFrom() public méthode

public openMailFrom ( $value )

openMailSubject() public méthode

public openMailSubject ( $value )

openMailTo() public méthode

public openMailTo ( $value )

purge() public méthode

public purge ( )

seeInMail() public méthode

public seeInMail ( $text )

seeMailContaining() public méthode

public seeMailContaining ( $value )

seeMailFrom() public méthode

public seeMailFrom ( $value )

seeMailSubject() public méthode

public seeMailSubject ( $value )

seeMailTo() public méthode

public seeMailTo ( $value )

setMailCatcherClient() public méthode

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

setMailCatcherConfiguration() public méthode

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

verifyMailsSent() public méthode

public verifyMailsSent ( $count )

Property Details

$currentMessage protected_oe property

protected Message,Alex\MailCatcher|null $currentMessage
Résultat Alex\MailCatcher\Message | null

$mailCatcherClient protected_oe property

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

$purgeBeforeScenario protected_oe property

protected bool $purgeBeforeScenario
Résultat boolean