-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
64 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ php: | |
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
- 8.0 | ||
|
||
sudo: false | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,38 +4,18 @@ | |
|
||
use Jsvrcek\ICS\Utility\Formatter; | ||
use Jsvrcek\ICS\Model\Relationship\Attendee; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class AttendeeTest extends \PHPUnit_Framework_TestCase | ||
class AttendeeTest extends TestCase | ||
{ | ||
/** | ||
* @var Attendee | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
* @return Attendee | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->object = new Attendee(new Formatter()); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers Jsvrcek\ICS\Model\Attendee::__toString() | ||
*/ | ||
public function testToString() | ||
{ | ||
$this->object | ||
$object = new Attendee(new Formatter()); | ||
|
||
$object | ||
->setValue('[email protected]') | ||
->setName('Joe Smith') | ||
->setCalendarUserType('INDIVIDUAL') | ||
|
@@ -51,6 +31,6 @@ public function testToString() | |
|
||
$expected = 'ATTENDEE;CUTYPE=INDIVIDUAL;MEMBER="mailto:[email protected]";ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;RSVP=TRUE;DELEGATED-TO="mailto:[email protected]","mailto:[email protected]";DELEGATED-FROM="mailto:[email protected]";SENT-BY="[email protected]";CN=Joe Smith;LANGUAGE=en:mailto:[email protected]'; | ||
|
||
$this->assertEquals($expected, $this->object->__toString()); | ||
$this->assertEquals($expected, $object->__toString()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,38 +4,18 @@ | |
|
||
use Jsvrcek\ICS\Utility\Formatter; | ||
use Jsvrcek\ICS\Model\Relationship\Organizer; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class OrganizerTest extends \PHPUnit_Framework_TestCase | ||
class OrganizerTest extends TestCase | ||
{ | ||
/** | ||
* @var Organizer | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
* @return Organizer | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->object = new Organizer(new Formatter()); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers Jsvrcek\ICS\Model\Organizer::__toString() | ||
*/ | ||
public function testToString() | ||
{ | ||
$this->object | ||
$object = new Organizer(new Formatter()); | ||
|
||
$object | ||
->setValue('[email protected]') | ||
->setName('Leonardo Da Vinci') | ||
->setLanguage('it') | ||
|
@@ -44,6 +24,6 @@ public function testToString() | |
|
||
$expected = 'ORGANIZER;SENT-BY="[email protected]";CN=Leonardo Da Vinci;DIR="http://en.wikipedia.org/wiki/Leonardo_da_Vinci";LANGUAGE=it:mailto:[email protected]'; | ||
|
||
$this->assertEquals($expected, $this->object->__toString()); | ||
$this->assertEquals($expected, $object->__toString()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters