1 | <?php |
||||
2 | |||||
3 | namespace Nip\Mail\Tests\Message; |
||||
4 | |||||
5 | use Nip\Mail\Message; |
||||
6 | use Nip\Mail\Tests\AbstractTest; |
||||
7 | |||||
8 | /** |
||||
9 | * Class HasAttachmentsTraitTest. |
||||
10 | */ |
||||
11 | class HasAttachmentsTraitTest extends AbstractTest |
||||
12 | { |
||||
13 | public function testAttachFromContent() |
||||
14 | { |
||||
15 | $message = new Message(); |
||||
16 | $message->attachFromContent('test'); |
||||
0 ignored issues
–
show
|
|||||
17 | static::assertCount(1, $message->getAttachments()); |
||||
18 | |||||
19 | $message->attachFromContent('test'); |
||||
0 ignored issues
–
show
The function
Nip\Mail\Message::attachFromContent() has been deprecated: use attach() instead
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This function has been deprecated. The supplier of the function has supplied an explanatory message. The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead. ![]() |
|||||
20 | static::assertCount(2, $message->getAttachments()); |
||||
21 | } |
||||
22 | } |
||||
23 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.