Skip to content

Commit 3f7d4e9

Browse files
author
corentin
committedMay 31, 2017
remove HHVM from travis tests
1 parent 5fcd5aa commit 3f7d4e9

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed
 

‎.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ php:
44
- '5.6'
55
- '7.0'
66
- '7.1'
7-
- hhvm
87

98
install:
109
- composer install

‎src/Object/Folder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function next()
7070

7171
return null;
7272
}
73-
73+
7474
# One object is set on current index
7575
if (isset($this->aFolder["entries"][$this->iFolderIndex])) {
7676
return $this->getObjectOnCurrentIndex();

‎tests/DropboxHelperTest.php

+3-13
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setUp()
2525
if (isset($env['DROPBOX_TOKEN'])) {
2626
$this->dropboxHelper = new DropboxHelper($env['DROPBOX_TOKEN']);
2727
} else {
28-
echo "\nWARNING: Dropbox token is empty.\n";
28+
trigger_error("WARNING: Dropbox token is empty.", E_USER_WARNING);
2929
}
3030
}
3131

@@ -85,8 +85,6 @@ public function testGetCursor()
8585
$sCursor = $oFolder->getCursor();
8686

8787
self::assertNotEmpty($sCursor, 'Failed to get cursor on a loaded folder');
88-
89-
echo "\nLast Cursor of '{$this->sFolderPath}':\n$sCursor\n";
9088
}
9189

9290
/**
@@ -168,26 +166,20 @@ public function testListFolderFromName()
168166
}
169167

170168
if (empty($this->sFolderPath)) {
171-
echo 'WARNING: Cannot run ' . __FUNCTION__ . ', Dropbox folder path is empty.';
169+
trigger_error('WARNING: Cannot run ' . __FUNCTION__ . ', Dropbox folder path is empty.', E_USER_WARNING);
172170
return;
173171
}
174172

175173
$oFolder = $this->dropboxHelper->loadFolderPath($this->sFolderPath);
176174

177-
echo "\nList Folder: {$this->sFolderPath}\n";
178175
while ($oFolder && ($aMedia = $oFolder->next())) {
179176
if (DropboxHelper::isFile($aMedia)) {
180-
echo 'File:' . $aMedia['name'] . ' ';
181177
}
182178
if (DropboxHelper::isFolder($aMedia)) {
183-
echo 'Folder:' . DropboxHelper::getPath($aMedia);
184179
}
185180
if (DropboxHelper::isDeleted($aMedia)) {
186-
echo 'Deleted:' . $aMedia['name'] . ' ';
187181
}
188182
}
189-
190-
echo "\n";
191183
}
192184

193185
public function testListFolderFromCursor()
@@ -197,17 +189,15 @@ public function testListFolderFromCursor()
197189
}
198190

199191
if (empty($this->sCursor)) {
200-
echo 'WARNING: Cannot run ' . __FUNCTION__ . ', Dropbox folder cursor is empty.';
192+
trigger_error('WARNING: Cannot run ' . __FUNCTION__ . ', Dropbox folder cursor is empty.', E_USER_WARNING);
201193
return;
202194
}
203195

204196
$oFolder = $this->dropboxHelper->loadFolderCursor($this->sCursor);
205197

206198
self::assertNotNull($oFolder, "Cannot load a folder from cursor: {$this->sCursor}");
207199

208-
echo "\nList Folder from Cursor:\n";
209200
while (($aFolder = $oFolder->next())) {
210-
echo $aFolder['.tag'] . ':' . $aFolder['name'] . ' ';
211201
}
212202
}
213203

0 commit comments

Comments
 (0)
Please sign in to comment.