tao-test/app/vendor/jtl-software/opsgenie-client/tests/PriorityTest.php

48 lines
1009 B
PHP

<?php
/**
* This File is part of JTL-Software
*
* User: rherrgesell
* Date: 11/22/18
*/
namespace JTL\OpsGenie\Client;
use PHPUnit\Framework\TestCase;
/**
* @covers \JTL\OpsGenie\Client\Priority
*/
class PriorityTest extends TestCase
{
public function testCanCreateCritical()
{
$this->assertInstanceOf(Priority::class, Priority::critical());
}
public function testCanCreateHigh()
{
$this->assertInstanceOf(Priority::class, Priority::high());
}
public function testCanCreateModerate()
{
$this->assertInstanceOf(Priority::class, Priority::moderate());
}
public function testCanCreateLow()
{
$this->assertInstanceOf(Priority::class, Priority::low());
}
public function testCanCreateInformational()
{
$this->assertInstanceOf(Priority::class, Priority::informational());
}
public function testCanCastToString()
{
$this->assertEquals('P5', (string)Priority::informational());
}
}