protected function findMail($type, $value)
    {
        $criterias = array($type => $value);

        $message = $this->getMailCatcherClient()->searchOne($criterias);

        if (null === $message) {
            throw new \InvalidArgumentException(sprintf('Unable to find a message with criterias "%s".', json_encode($criterias)));
        }

        return $message;
    }
protected function findMail($type, $value)
    {
        $criterias = array($type => $value);

        $message = $this->getMailCatcherClient()->searchOne($criterias);

        if (null === $message) {
            throw new \InvalidArgumentException(sprintf('Unable to find a message with criterias "%s".', json_encode($criterias)));
        }

        return $message;
    }
protected function findMail ( $ type , $ value ) { $ criterias = array ( $ type => $ value ) ; $ message = $ this -> getMailCatcherClient ( ) -> searchOne ( $ criterias ) ; if ( null === $ message ) { throw new \ InvalidArgumentException ( sprintf ( 'Unable to find a message with criterias "%s".' , json_encode ( $ criterias ) ) ) ; } return $ message ; }
This method is duplicated from MailCatcherTrait, for support in PHP 5.3

@return Message
This method is duplicated from MailCatcherTrait for support in PHP 5 . 3