mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 18:00:17 +02:00
Remove assertInternalType that it is deprecated
This commit is contained in:
@@ -23,7 +23,7 @@ class HostnameProcessorTest extends TestCase
|
||||
$processor = new HostnameProcessor();
|
||||
$record = $processor($this->getRecord());
|
||||
$this->assertArrayHasKey('hostname', $record['extra']);
|
||||
$this->assertInternalType('string', $record['extra']['hostname']);
|
||||
$this->assertIsString($record['extra']['hostname']);
|
||||
$this->assertNotEmpty($record['extra']['hostname']);
|
||||
$this->assertEquals(gethostname(), $record['extra']['hostname']);
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ class MemoryPeakUsageProcessorTest extends TestCase
|
||||
$processor = new MemoryPeakUsageProcessor(true, false);
|
||||
$record = $processor($this->getRecord());
|
||||
$this->assertArrayHasKey('memory_peak_usage', $record['extra']);
|
||||
$this->assertInternalType('int', $record['extra']['memory_peak_usage']);
|
||||
$this->assertIsInt($record['extra']['memory_peak_usage']);
|
||||
$this->assertGreaterThan(0, $record['extra']['memory_peak_usage']);
|
||||
}
|
||||
}
|
||||
|
@@ -36,7 +36,7 @@ class MemoryUsageProcessorTest extends TestCase
|
||||
$processor = new MemoryUsageProcessor(true, false);
|
||||
$record = $processor($this->getRecord());
|
||||
$this->assertArrayHasKey('memory_usage', $record['extra']);
|
||||
$this->assertInternalType('int', $record['extra']['memory_usage']);
|
||||
$this->assertIsInt($record['extra']['memory_usage']);
|
||||
$this->assertGreaterThan(0, $record['extra']['memory_usage']);
|
||||
}
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ class ProcessIdProcessorTest extends TestCase
|
||||
$processor = new ProcessIdProcessor();
|
||||
$record = $processor($this->getRecord());
|
||||
$this->assertArrayHasKey('process_id', $record['extra']);
|
||||
$this->assertInternalType('int', $record['extra']['process_id']);
|
||||
$this->assertIsInt($record['extra']['process_id']);
|
||||
$this->assertGreaterThan(0, $record['extra']['process_id']);
|
||||
$this->assertEquals(getmypid(), $record['extra']['process_id']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user