Skip to content

Commit

Permalink
Change dataproviders to static
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-i committed Nov 19, 2023
1 parent ad6e5cb commit 6293321
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function testFormat(string $expects, CallTrace $call_trace): void
$this->assertSame($expects, $formatter->format($call_trace));
}

public function dataProvider(): array
public static function dataProvider(): array
{
return [
'one_function_only_without_opline' => [
Expand Down
2 changes: 1 addition & 1 deletion tests/Lib/Elf/Tls/LibThreadDbTlsFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function testThrowTlsFinderExceptionIfDebugSymbolsNotFound(
/**
* @return array<string, array<?CData>>
*/
public function casesDebugSymbolsFoundOrNot(): array
public static function casesDebugSymbolsFoundOrNot(): array
{
$_thread_db_pthread_dtvp = \FFI::new('unsigned char[12]');
$_thread_db_dtv_dtv = \FFI::new('unsigned char[12]');
Expand Down
2 changes: 1 addition & 1 deletion tests/Lib/Log/LogTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function testInfo(string $log_level, string $method): void
Log::$method('test');
}

public function logLevelsProvider(): array
public static function logLevelsProvider(): array
{
return [
'emergency' => [LogLevel::EMERGENCY, 'emergency'],
Expand Down
2 changes: 1 addition & 1 deletion tests/Lib/Process/MemoryMap/ProcessModuleMemoryMapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testGetMemoryAddressFromOffset(int $expected, int $offset)
$this->assertSame($expected, $process_module_memoru_map->getMemoryAddressFromOffset($offset));
}

public function addressAndOffsetProvider(): array
public static function addressAndOffsetProvider(): array
{
return [
[0x10000000, 0x00000000],
Expand Down

0 comments on commit 6293321

Please sign in to comment.