Renamed Message_SeverityLevel class to respect naming conventions.
This commit is contained in:
Родитель
637e68bc2a
Коммит
47b857e027
|
@ -30,7 +30,7 @@
|
|||
<Compile Include="ApplicationInsights\Channel\Contracts\Internal.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Location.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Message_Data.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Message_SeverityLevel.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Message_Severity_Level.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Metric_Data.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Operation.php" />
|
||||
<Compile Include="ApplicationInsights\Channel\Contracts\Page_View_Data.php" />
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
namespace ApplicationInsights\Channel\Contracts;
|
||||
/**
|
||||
* Enum Message_SeverityLevel.
|
||||
* Enum Message_Severity_Level.
|
||||
*/
|
||||
abstract class Message_SeverityLevel
|
||||
abstract class Message_Severity_Level
|
||||
{
|
||||
const VERBOSE = 'Verbose';
|
||||
const INFORMATION = 'Information';
|
|
@ -183,8 +183,8 @@ class Telemetry_Client_Test extends \PHPUnit_Framework_TestCase
|
|||
*/
|
||||
public function testCompleteMessage()
|
||||
{
|
||||
$this->_telemetryClient->trackMessage('myMessage', \ApplicationInsights\Channel\Contracts\Message_SeverityLevel::ERROR, ['InlineProperty' => 'test_value']);
|
||||
$this->_telemetryClient->trackMessage('myMessage2', \ApplicationInsights\Channel\Contracts\Message_SeverityLevel::INFORMATION, ['InlineProperty' => 'test_value']);
|
||||
$this->_telemetryClient->trackMessage('myMessage', \ApplicationInsights\Channel\Contracts\Message_Severity_Level::ERROR, ['InlineProperty' => 'test_value']);
|
||||
$this->_telemetryClient->trackMessage('myMessage2', \ApplicationInsights\Channel\Contracts\Message_Severity_Level::INFORMATION, ['InlineProperty' => 'test_value']);
|
||||
|
||||
$queue = json_decode($this->_telemetryClient->getChannel()->getSerializedQueue(), true);
|
||||
$queue = $this->adjustDataInQueue($queue);
|
||||
|
|
Загрузка…
Ссылка в новой задаче