Skip to content

Commit f1bc0bb

Browse files
committed
Fix doc blocks and class names
1 parent 278c8e9 commit f1bc0bb

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

tests/GridFS/BucketFunctionalTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818
class BucketFunctionalTest extends FunctionalTestCase
1919
{
20-
/*
20+
/**
2121
* @doesNotPerformAssertions
2222
*/
2323
public function testValidConstructorOptions()
@@ -141,7 +141,7 @@ public function testDeleteStillRemovesChunksIfFileDoesNotExist($input, $expected
141141
}
142142

143143
/**
144-
* @expectedException PHPUnit_Framework_Error_Warning
144+
* @expectedException PHPUnit\Framework\Error\Warning
145145
*/
146146
public function testDownloadingFileWithMissingChunk()
147147
{
@@ -153,7 +153,7 @@ public function testDownloadingFileWithMissingChunk()
153153
}
154154

155155
/**
156-
* @expectedException PHPUnit_Framework_Error_Warning
156+
* @expectedException PHPUnit\Framework\Error\Warning
157157
*/
158158
public function testDownloadingFileWithUnexpectedChunkIndex()
159159
{
@@ -168,7 +168,7 @@ public function testDownloadingFileWithUnexpectedChunkIndex()
168168
}
169169

170170
/**
171-
* @expectedException PHPUnit_Framework_Error_Warning
171+
* @expectedException PHPUnit\Framework\Error\Warning
172172
*/
173173
public function testDownloadingFileWithUnexpectedChunkSize()
174174
{

tests/GridFS/ReadableStreamFunctionalTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ public function provideFileIdAndExpectedBytes()
112112

113113
public function provideFilteredFileIdAndExpectedBytes()
114114
{
115-
$filteredFiles = array_filter($this->provideFileIdAndExpectedBytes(),
115+
return array_filter($this->provideFileIdAndExpectedBytes(),
116116
function(array $args) {
117117
return $args[1] > 0;
118118
}
119119
);
120-
return $filteredFiles;
121120
}
122121

123122
/**

tests/GridFS/SpecFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ private function getExceptionClassForError($error)
330330
/* Although ReadableStream throws a CorruptFileException, the
331331
* stream wrapper will convert it to a PHP error of type
332332
* E_USER_WARNING. */
333-
return 'PHPUnit_Framework_Error_Warning';
333+
return 'PHPUnit\Framework\Error\Warning';
334334

335335
default:
336336
throw new LogicException('Unsupported error: ' . $error);

tests/GridFS/WritableStreamFunctionalTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function setUp()
1919
$this->collectionWrapper = new CollectionWrapper($this->manager, $this->getDatabaseName(), 'fs');
2020
}
2121

22-
/*
22+
/**
2323
* @doesNotPerformAssertions
2424
*/
2525
public function testValidConstructorOptions()

0 commit comments

Comments
 (0)