PHP Класс Alex\MailCatcher\Behat\MailCatcherContext

Автор: Alexandre Salomé ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$currentMessage Alex\MailCatcher\Message | null
$mailCatcherClient Alex\MailCatcher\Client | null This property is duplicated from MailCatcherTrait for support in PHP 5.3
$purgeBeforeScenario boolean

Открытые методы

Метод Описание
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 )

Защищенные методы

Метод Описание
findMail ( $type, $value ) : Message This method is duplicated from MailCatcherTrait, for support in PHP 5.3

Приватные методы

Метод Описание
getCrawler ( Message $message ) : Crawler
getCurrentMessage ( ) : Message | null

Описание методов

beforeScenario() публичный метод

public beforeScenario ( )

findMail() защищенный метод

This method is duplicated from MailCatcherTrait, for support in PHP 5.3
protected findMail ( $type, $value ) : Message
Результат Alex\MailCatcher\Message

getMailCatcherClient() публичный метод

Returns the mailcatcher client.
public getMailCatcherClient ( ) : Alex\MailCatcher\Client
Результат Alex\MailCatcher\Client

getTranslationResources() публичный статический метод

Returns list of definition translation resources paths.
public static getTranslationResources ( ) : array
Результат array

openMailContaining() публичный метод

public openMailContaining ( $value )

openMailFrom() публичный метод

public openMailFrom ( $value )

openMailSubject() публичный метод

public openMailSubject ( $value )

openMailTo() публичный метод

public openMailTo ( $value )

purge() публичный метод

public purge ( )

seeInMail() публичный метод

public seeInMail ( $text )

seeMailContaining() публичный метод

public seeMailContaining ( $value )

seeMailFrom() публичный метод

public seeMailFrom ( $value )

seeMailSubject() публичный метод

public seeMailSubject ( $value )

seeMailTo() публичный метод

public seeMailTo ( $value )

setMailCatcherClient() публичный метод

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

setMailCatcherConfiguration() публичный метод

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

verifyMailsSent() публичный метод

public verifyMailsSent ( $count )

Описание свойств

$currentMessage защищенное свойство

protected Message,Alex\MailCatcher|null $currentMessage
Результат Alex\MailCatcher\Message | null

$mailCatcherClient защищенное свойство

This property is duplicated from MailCatcherTrait for support in PHP 5.3
protected Client,Alex\MailCatcher|null $mailCatcherClient
Результат Alex\MailCatcher\Client | null

$purgeBeforeScenario защищенное свойство

protected bool $purgeBeforeScenario
Результат boolean