Hoa central
Public Member Functions | List of all members
Hoa\Mail\Test\Unit\Content\Html Class Reference
Inheritance diagram for Hoa\Mail\Test\Unit\Content\Html:

Public Member Functions

 case_basic ()
 
 case_html_is_text ()
 
 case_content_type ()
 
- Public Member Functions inherited from Hoa\Test\Unit\Suite
 __construct ()
 
 getTestedClassName ()
 
 getTestedClassNamespace ()
 
 beforeTestMethod ($methodName)
 

Detailed Description

Class .

Test suite of the HTML content.

Definition at line 50 of file Html.php.

Member Function Documentation

Hoa\Mail\Test\Unit\Content\Html::case_basic ( )

Definition at line 52 of file Html.php.

53  {
54  $this
55  ->given(
56  $html = '<strong>foobar</strong>',
57  $content = new SUT($html)
58  )
59  ->when($result = $content->getFormattedContent())
60  ->then
61  ->string($result)
62  ->isEqualTo(
63  'content-transfer-encoding: quoted-printable' . CRLF .
64  'content-disposition: inline' . CRLF .
65  'content-type: text/html; charset=utf-8' . CRLF .
66  CRLF .
67  '<strong>foobar</strong>'
68  );
69  }
$content
Definition: Hoa.php:119
Hoa\Mail\Test\Unit\Content\Html::case_content_type ( )

Definition at line 80 of file Html.php.

81  {
82  $this
83  ->given($content = new SUT())
84  ->when($result = $content->getHeaders())
85  ->then
86  ->array($result)
87  ->hasKey('content-type')
88 
89  ->string($result['content-type'])
90  ->isEqualTo('text/html; charset=utf-8');
91  }
$content
Definition: Hoa.php:119
Hoa\Mail\Test\Unit\Content\Html::case_html_is_text ( )

Definition at line 71 of file Html.php.

72  {
73  $this
74  ->when($content = new SUT())
75  ->then
76  ->object($content)
77  ->isInstanceOf('Hoa\Mail\Content\Html');
78  }
$content
Definition: Hoa.php:119

The documentation for this class was generated from the following file: