XmlTest
extends TestCase
in package
Uses
PHPUnitAssertions
Table of Contents
- assertVObjectEqualsVObject() : mixed
- This method tests whether two vcards or icalendar objects are semantically identical.
- testRDateWithDate() : mixed
- testRDateWithDateTime() : mixed
- testRDateWithPeriod() : mixed
- testRFC6321Example1() : mixed
- testRFC6321Example2() : mixed
- testRFC6321Section3_2() : mixed
- iCalendar Stream.
- testRFC6321Section3_3() : mixed
- All components exist.
- testRFC6321Section3_4_1_2() : mixed
- Properties, Special Cases, GEO.
- testRFC6321Section3_4_1_3() : mixed
- Properties, Special Cases, REQUEST-STATUS.
- testRFC6321Section3_6_1() : mixed
- Values, Binary.
- testRFC6321Section3_6_10() : mixed
- Values, Recurrence Rule.
- testRFC6321Section3_6_11() : mixed
- Values, Text.
- testRFC6321Section3_6_12() : mixed
- Values, Time.
- testRFC6321Section3_6_13() : mixed
- Values, URI.
- testRFC6321Section3_6_14() : mixed
- Values, UTC Offset.
- testRFC6321Section3_6_2() : mixed
- Values, Boolean.
- testRFC6321Section3_6_3() : mixed
- Values, Calendar User Address.
- testRFC6321Section3_6_4() : mixed
- Values, Date.
- testRFC6321Section3_6_5() : mixed
- Values, Date-Time.
- testRFC6321Section3_6_6() : mixed
- Values, Duration.
- testRFC6321Section3_6_7() : mixed
- Values, Float.
- testRFC6321Section3_6_8() : mixed
- Values, Integer.
- testRFC6321Section3_6_9() : mixed
- Values, Period of Time.
- testRFC6321Section5() : mixed
- Handling Unrecognized Properties or Parameters.
- testRFC6350Section6_1_3() : mixed
- Property: SOURCE.
- testRFC6350Section6_1_4() : mixed
- Property: KIND.
- testRFC6350Section6_2_1() : mixed
- Property: FN.
- testRFC6350Section6_2_2() : mixed
- Property: N.
- testRFC6350Section6_2_3() : mixed
- Property: NICKNAME.
- testRFC6350Section6_2_4() : mixed
- Property: PHOTO.
- testRFC6350Section6_2_5() : mixed
- testRFC6350Section6_2_6() : mixed
- testRFC6350Section6_2_7() : mixed
- Property: GENDER.
- testRFC6350Section6_3_1() : mixed
- Property: ADR.
- testRFC6350Section6_4_1() : mixed
- Property: TEL.
- testRFC6350Section6_4_2() : mixed
- Property: EMAIL.
- testRFC6350Section6_4_3() : mixed
- Property: IMPP.
- testRFC6350Section6_4_4() : mixed
- Property: LANG.
- testRFC6350Section6_5_1() : mixed
- Property: TZ.
- testRFC6350Section6_5_2() : mixed
- Property: GEO.
- testRFC6350Section6_6_1() : mixed
- Property: TITLE.
- testRFC6350Section6_6_2() : mixed
- Property: ROLE.
- testRFC6350Section6_6_3() : mixed
- Property: LOGO.
- testRFC6350Section6_6_4() : mixed
- Property: ORG.
- testRFC6350Section6_6_5() : mixed
- Property: MEMBER.
- testRFC6350Section6_6_6() : mixed
- Property: RELATED.
- testRFC6350Section6_7_1() : mixed
- Property: CATEGORIES.
- testRFC6350Section6_7_2() : mixed
- Property: NOTE.
- testRFC6350Section6_7_3() : mixed
- Property: PRODID.
- testRFC6350Section6_7_4() : mixed
- testRFC6350Section6_7_5() : mixed
- Property: SOUND.
- testRFC6350Section6_7_6() : mixed
- Property: UID.
- testRFC6350Section6_7_7() : mixed
- Property: CLIENTPIDMAP.
- testRFC6350Section6_7_8() : mixed
- Property: URL.
- testRFC6350Section6_7_9() : mixed
- Property: VERSION.
- testRFC6350Section6_8_1() : mixed
- Property: KEY.
- testRFC6350Section6_9_1() : mixed
- Property: FBURL.
- testRFC6350Section6_9_2() : mixed
- Property: CALADRURI.
- testRFC6350Section6_9_3() : mixed
- Property: CALURI.
- testRFC6350SectionA_3() : mixed
- Property: CAPURI.
- testRFC6351Basic() : mixed
- Basic example.
- testRFC6351Example1() : mixed
- Example 1.
- testRFC6351Section5() : mixed
- Design Considerations.
- testRFC6351Section5_1_NoNamespace() : mixed
- Extensibility.
- testRFC6351Section5Group() : mixed
- Design Considerations.
- testRFC6351ValueDateTimeWithDayHour() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateTimeWithDayHourMinute() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateTimeWithDayHourMinuteSecond() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateTimeWithDayHourTZ() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateTimeWithDayHourZ() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateTimeWithMonthDayHour() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateTimeWithYearMonthDayHour() : mixed
- Section 4.3.3 of Relax NG Schema: value-date-time.
- testRFC6351ValueDateWithDay() : mixed
- Section 4.3.1 of Relax NG Schema: value-date.
- testRFC6351ValueDateWithMonth() : mixed
- Section 4.3.1 of Relax NG Schema: value-date.
- testRFC6351ValueDateWithMonthDay() : mixed
- Section 4.3.1 of Relax NG Schema: value-date.
- testRFC6351ValueDateWithYearMonth() : mixed
- Section 4.3.1 of Relax NG Schema: value-date.
- testRFC6351ValueDateWithYearMonthDay() : mixed
- Section 4.3.1 of Relax NG Schema: value-date.
- testRFC6351ValueTimeWithHour() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithHourMinute() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithHourMinuteSecond() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithMinute() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithMinuteSecond() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithSecond() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithSecondTZ() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- testRFC6351ValueTimeWithSecondZ() : mixed
- Section 4.3.2 of Relax NG Schema: value-time.
- assertXMLEqualsToMimeDir() : mixed
- Check this equality: XML -> object model -> MIME Dir.
- assertXMLReflexivelyEqualsToMimeDir() : mixed
- Check this (reflexive) equality: XML -> object model -> MIME Dir -> object model -> XML.
Methods
assertVObjectEqualsVObject()
This method tests whether two vcards or icalendar objects are semantically identical.
public
assertVObjectEqualsVObject(resource|string|Component $expected, resource|string|Component $actual[, string $message = '' ]) : mixed
It supports objects being supplied as strings, streams or Sabre\VObject\Component instances.
PRODID is removed from both objects as this is often changes and would just get in the way.
CALSCALE will automatically get removed if it's set to GREGORIAN.
Any property that has the value ANY will be treated as a wildcard.
Parameters
Return values
mixed —testRDateWithDate()
public
testRDateWithDate() : mixed
Return values
mixed —testRDateWithDateTime()
public
testRDateWithDateTime() : mixed
Return values
mixed —testRDateWithPeriod()
public
testRDateWithPeriod() : mixed
Return values
mixed —testRFC6321Example1()
public
testRFC6321Example1() : mixed
Return values
mixed —testRFC6321Example2()
public
testRFC6321Example2() : mixed
Return values
mixed —testRFC6321Section3_2()
iCalendar Stream.
public
testRFC6321Section3_2() : mixed
Return values
mixed —testRFC6321Section3_3()
All components exist.
public
testRFC6321Section3_3() : mixed
Return values
mixed —testRFC6321Section3_4_1_2()
Properties, Special Cases, GEO.
public
testRFC6321Section3_4_1_2() : mixed
Return values
mixed —testRFC6321Section3_4_1_3()
Properties, Special Cases, REQUEST-STATUS.
public
testRFC6321Section3_4_1_3() : mixed
Return values
mixed —testRFC6321Section3_6_1()
Values, Binary.
public
testRFC6321Section3_6_1() : mixed
Return values
mixed —testRFC6321Section3_6_10()
Values, Recurrence Rule.
public
testRFC6321Section3_6_10() : mixed
Return values
mixed —testRFC6321Section3_6_11()
Values, Text.
public
testRFC6321Section3_6_11() : mixed
Return values
mixed —testRFC6321Section3_6_12()
Values, Time.
public
testRFC6321Section3_6_12() : mixed
Return values
mixed —testRFC6321Section3_6_13()
Values, URI.
public
testRFC6321Section3_6_13() : mixed
Return values
mixed —testRFC6321Section3_6_14()
Values, UTC Offset.
public
testRFC6321Section3_6_14() : mixed
Return values
mixed —testRFC6321Section3_6_2()
Values, Boolean.
public
testRFC6321Section3_6_2() : mixed
Return values
mixed —testRFC6321Section3_6_3()
Values, Calendar User Address.
public
testRFC6321Section3_6_3() : mixed
Return values
mixed —testRFC6321Section3_6_4()
Values, Date.
public
testRFC6321Section3_6_4() : mixed
Return values
mixed —testRFC6321Section3_6_5()
Values, Date-Time.
public
testRFC6321Section3_6_5() : mixed
Return values
mixed —testRFC6321Section3_6_6()
Values, Duration.
public
testRFC6321Section3_6_6() : mixed
Return values
mixed —testRFC6321Section3_6_7()
Values, Float.
public
testRFC6321Section3_6_7() : mixed
Return values
mixed —testRFC6321Section3_6_8()
Values, Integer.
public
testRFC6321Section3_6_8() : mixed
Return values
mixed —testRFC6321Section3_6_9()
Values, Period of Time.
public
testRFC6321Section3_6_9() : mixed
Return values
mixed —testRFC6321Section5()
Handling Unrecognized Properties or Parameters.
public
testRFC6321Section5() : mixed
Return values
mixed —testRFC6350Section6_1_3()
Property: SOURCE.
public
testRFC6350Section6_1_3() : mixed
Return values
mixed —testRFC6350Section6_1_4()
Property: KIND.
public
testRFC6350Section6_1_4() : mixed
Return values
mixed —testRFC6350Section6_2_1()
Property: FN.
public
testRFC6350Section6_2_1() : mixed
Return values
mixed —testRFC6350Section6_2_2()
Property: N.
public
testRFC6350Section6_2_2() : mixed
Return values
mixed —testRFC6350Section6_2_3()
Property: NICKNAME.
public
testRFC6350Section6_2_3() : mixed
Return values
mixed —testRFC6350Section6_2_4()
Property: PHOTO.
public
testRFC6350Section6_2_4() : mixed
Return values
mixed —testRFC6350Section6_2_5()
public
testRFC6350Section6_2_5() : mixed
Return values
mixed —testRFC6350Section6_2_6()
public
testRFC6350Section6_2_6() : mixed
Return values
mixed —testRFC6350Section6_2_7()
Property: GENDER.
public
testRFC6350Section6_2_7() : mixed
Return values
mixed —testRFC6350Section6_3_1()
Property: ADR.
public
testRFC6350Section6_3_1() : mixed
Return values
mixed —testRFC6350Section6_4_1()
Property: TEL.
public
testRFC6350Section6_4_1() : mixed
Return values
mixed —testRFC6350Section6_4_2()
Property: EMAIL.
public
testRFC6350Section6_4_2() : mixed
Return values
mixed —testRFC6350Section6_4_3()
Property: IMPP.
public
testRFC6350Section6_4_3() : mixed
Return values
mixed —testRFC6350Section6_4_4()
Property: LANG.
public
testRFC6350Section6_4_4() : mixed
Return values
mixed —testRFC6350Section6_5_1()
Property: TZ.
public
testRFC6350Section6_5_1() : mixed
Return values
mixed —testRFC6350Section6_5_2()
Property: GEO.
public
testRFC6350Section6_5_2() : mixed
Return values
mixed —testRFC6350Section6_6_1()
Property: TITLE.
public
testRFC6350Section6_6_1() : mixed
Return values
mixed —testRFC6350Section6_6_2()
Property: ROLE.
public
testRFC6350Section6_6_2() : mixed
Return values
mixed —testRFC6350Section6_6_3()
Property: LOGO.
public
testRFC6350Section6_6_3() : mixed
Return values
mixed —testRFC6350Section6_6_4()
Property: ORG.
public
testRFC6350Section6_6_4() : mixed
Return values
mixed —testRFC6350Section6_6_5()
Property: MEMBER.
public
testRFC6350Section6_6_5() : mixed
Return values
mixed —testRFC6350Section6_6_6()
Property: RELATED.
public
testRFC6350Section6_6_6() : mixed
Return values
mixed —testRFC6350Section6_7_1()
Property: CATEGORIES.
public
testRFC6350Section6_7_1() : mixed
Return values
mixed —testRFC6350Section6_7_2()
Property: NOTE.
public
testRFC6350Section6_7_2() : mixed
Return values
mixed —testRFC6350Section6_7_3()
Property: PRODID.
public
testRFC6350Section6_7_3() : mixed
Return values
mixed —testRFC6350Section6_7_4()
public
testRFC6350Section6_7_4() : mixed
Return values
mixed —testRFC6350Section6_7_5()
Property: SOUND.
public
testRFC6350Section6_7_5() : mixed
Return values
mixed —testRFC6350Section6_7_6()
Property: UID.
public
testRFC6350Section6_7_6() : mixed
Return values
mixed —testRFC6350Section6_7_7()
Property: CLIENTPIDMAP.
public
testRFC6350Section6_7_7() : mixed
Return values
mixed —testRFC6350Section6_7_8()
Property: URL.
public
testRFC6350Section6_7_8() : mixed
Return values
mixed —testRFC6350Section6_7_9()
Property: VERSION.
public
testRFC6350Section6_7_9() : mixed
Return values
mixed —testRFC6350Section6_8_1()
Property: KEY.
public
testRFC6350Section6_8_1() : mixed
Return values
mixed —testRFC6350Section6_9_1()
Property: FBURL.
public
testRFC6350Section6_9_1() : mixed
Return values
mixed —testRFC6350Section6_9_2()
Property: CALADRURI.
public
testRFC6350Section6_9_2() : mixed
Return values
mixed —testRFC6350Section6_9_3()
Property: CALURI.
public
testRFC6350Section6_9_3() : mixed
Return values
mixed —testRFC6350SectionA_3()
Property: CAPURI.
public
testRFC6350SectionA_3() : mixed
Return values
mixed —testRFC6351Basic()
Basic example.
public
testRFC6351Basic() : mixed
Return values
mixed —testRFC6351Example1()
Example 1.
public
testRFC6351Example1() : mixed
Return values
mixed —testRFC6351Section5()
Design Considerations.
public
testRFC6351Section5() : mixed
Return values
mixed —testRFC6351Section5_1_NoNamespace()
Extensibility.
public
testRFC6351Section5_1_NoNamespace() : mixed
Return values
mixed —testRFC6351Section5Group()
Design Considerations.
public
testRFC6351Section5Group() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithDayHour()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithDayHour() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithDayHourMinute()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithDayHourMinute() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithDayHourMinuteSecond()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithDayHourMinuteSecond() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithDayHourTZ()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithDayHourTZ() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithDayHourZ()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithDayHourZ() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithMonthDayHour()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithMonthDayHour() : mixed
Return values
mixed —testRFC6351ValueDateTimeWithYearMonthDayHour()
Section 4.3.3 of Relax NG Schema: value-date-time.
public
testRFC6351ValueDateTimeWithYearMonthDayHour() : mixed
Return values
mixed —testRFC6351ValueDateWithDay()
Section 4.3.1 of Relax NG Schema: value-date.
public
testRFC6351ValueDateWithDay() : mixed
Return values
mixed —testRFC6351ValueDateWithMonth()
Section 4.3.1 of Relax NG Schema: value-date.
public
testRFC6351ValueDateWithMonth() : mixed
Return values
mixed —testRFC6351ValueDateWithMonthDay()
Section 4.3.1 of Relax NG Schema: value-date.
public
testRFC6351ValueDateWithMonthDay() : mixed
Return values
mixed —testRFC6351ValueDateWithYearMonth()
Section 4.3.1 of Relax NG Schema: value-date.
public
testRFC6351ValueDateWithYearMonth() : mixed
Return values
mixed —testRFC6351ValueDateWithYearMonthDay()
Section 4.3.1 of Relax NG Schema: value-date.
public
testRFC6351ValueDateWithYearMonthDay() : mixed
Return values
mixed —testRFC6351ValueTimeWithHour()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithHour() : mixed
Return values
mixed —testRFC6351ValueTimeWithHourMinute()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithHourMinute() : mixed
Return values
mixed —testRFC6351ValueTimeWithHourMinuteSecond()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithHourMinuteSecond() : mixed
Return values
mixed —testRFC6351ValueTimeWithMinute()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithMinute() : mixed
Return values
mixed —testRFC6351ValueTimeWithMinuteSecond()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithMinuteSecond() : mixed
Return values
mixed —testRFC6351ValueTimeWithSecond()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithSecond() : mixed
Return values
mixed —testRFC6351ValueTimeWithSecondTZ()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithSecondTZ() : mixed
Return values
mixed —testRFC6351ValueTimeWithSecondZ()
Section 4.3.2 of Relax NG Schema: value-time.
public
testRFC6351ValueTimeWithSecondZ() : mixed
Return values
mixed —assertXMLEqualsToMimeDir()
Check this equality: XML -> object model -> MIME Dir.
protected
assertXMLEqualsToMimeDir(mixed $xml, mixed $mimedir) : mixed
Parameters
- $xml : mixed
- $mimedir : mixed
Return values
mixed —assertXMLReflexivelyEqualsToMimeDir()
Check this (reflexive) equality: XML -> object model -> MIME Dir -> object model -> XML.
protected
assertXMLReflexivelyEqualsToMimeDir(mixed $xml, mixed $mimedir) : mixed
Parameters
- $xml : mixed
- $mimedir : mixed