[Pkg-owncloud-commits] [php-sabre-vobject] 30/65: We are in PHP5.3 on this branch :-).
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:57:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabre-vobject.
commit 741e2d1f73090be9cd764114a518b757cfe6f3c0
Author: Ivan Enderlin <ivan.enderlin at hoa-project.net>
Date: Mon Feb 2 17:33:35 2015 +0100
We are in PHP5.3 on this branch :-).
---
lib/Component/Available.php | 4 ++--
lib/Component/VAvailability.php | 6 ++----
tests/VObject/Component/VAvailabilityTest.php | 22 +++++++++++-----------
3 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/lib/Component/Available.php b/lib/Component/Available.php
index 1920236..ec5f6c4 100644
--- a/lib/Component/Available.php
+++ b/lib/Component/Available.php
@@ -33,7 +33,7 @@ class Available extends VObject\Component {
*/
function getValidationRules() {
- return [
+ return array(
'UID' => 1,
'DTSTART' => 1,
'DTSTAMP' => 1,
@@ -55,7 +55,7 @@ class Available extends VObject\Component {
'RDATE' => '*',
'AVAILABLE' => '*',
- ];
+ );
}
diff --git a/lib/Component/VAvailability.php b/lib/Component/VAvailability.php
index 4603da7..95ae4ff 100644
--- a/lib/Component/VAvailability.php
+++ b/lib/Component/VAvailability.php
@@ -33,7 +33,7 @@ class VAvailability extends VObject\Component {
*/
function getValidationRules() {
- return [
+ return array(
'UID' => 1,
'DTSTAMP' => 1,
@@ -54,9 +54,7 @@ class VAvailability extends VObject\Component {
'CATEGORIES' => '*',
'COMMENT' => '*',
'CONTACT' => '*',
-
- 'AVAILABLE' => '*',
- ];
+ );
}
diff --git a/tests/VObject/Component/VAvailabilityTest.php b/tests/VObject/Component/VAvailabilityTest.php
index 59e3e4c..4102d6c 100644
--- a/tests/VObject/Component/VAvailabilityTest.php
+++ b/tests/VObject/Component/VAvailabilityTest.php
@@ -87,7 +87,7 @@ VCAL
function testRFCxxxSection3_1_availabilityprop_optional_once() {
- $properties = [
+ $properties = array(
'BUSYTYPE:BUSY',
'CLASS:PUBLIC',
'CREATED:20111005T135125Z',
@@ -98,18 +98,18 @@ VCAL
'PRIORITY:1',
'SEQUENCE:0',
'SUMMARY:Bla bla',
- 'URL:http://exampLe.org/'
- ];
+ 'URL:http://example.org/'
+ );
// They are all present, only once.
$this->assertIsValid(Reader::read($this->template($properties)));
// We duplicate each one to see if it fails.
foreach ($properties as $property) {
- $this->assertIsNotValid(Reader::read($this->template([
+ $this->assertIsNotValid(Reader::read($this->template(array(
$property,
$property
- ])));
+ ))));
}
}
@@ -117,20 +117,20 @@ VCAL
function testRFCxxxSection3_1_availabilityprop_dtend_duration() {
// Only DTEND.
- $this->assertIsValid(Reader::read($this->template([
+ $this->assertIsValid(Reader::read($this->template(array(
'DTEND:21111005T133225Z'
- ])));
+ ))));
// Only DURATION.
- $this->assertIsValid(Reader::read($this->template([
+ $this->assertIsValid(Reader::read($this->template(array(
'DURATION:PT1H'
- ])));
+ ))));
// Both (not allowed).
- $this->assertIsNotValid(Reader::read($this->template([
+ $this->assertIsNotValid(Reader::read($this->template(array(
'DTEND:21111005T133225Z',
'DURATION:PT1H'
- ])));
+ ))));
}
function testAvailableSubComponent() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git
More information about the Pkg-owncloud-commits
mailing list