Skip to content

Commit

Permalink
Fix dataproviders in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danmichaelo committed Feb 27, 2024
1 parent 4242174 commit f493820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/CollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testExceptionOnInvalidEncoding()
*
* @return array
*/
public function mrcFiles()
public static function mrcFiles()
{
return [
['sandburg.mrc', 1], // Single binary MARC file
Expand All @@ -48,7 +48,7 @@ public function mrcFiles()
*
* @return array
*/
public function xmlFiles()
public static function xmlFiles()
{
return [
['oaipmh-bibsys.xml', 89], // Records encapsulated in OAI-PMH response
Expand Down
2 changes: 1 addition & 1 deletion tests/ExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testExample($filename)
}
}

public function exampleDataProvider()
public static function exampleDataProvider()
{
foreach (glob($this->pathTo('examples/*.xml')) as $filename) {
yield [$filename];
Expand Down

0 comments on commit f493820

Please sign in to comment.