Renamed Message_SeverityLevel class to respect naming conventions.

This commit is contained in:
Peter-Juhasz 2017-05-16 21:50:33 +02:00
Родитель 637e68bc2a
Коммит 47b857e027
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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);