Files
lsky-pro/vendor/microsoft/microsoft-graph/tests/Exception/ExceptionTest.php
T
2021-04-21 08:59:01 +08:00

12 lines
352 B
PHP

<?php
use PHPUnit\Framework\TestCase;
use Microsoft\Graph\Exception\GraphException;
class ExceptionTest extends TestCase
{
public function testToString()
{
$exception = new GraphException('bad stuff', '404');
$this->assertEquals("Microsoft\Graph\Exception\GraphException: [404]: bad stuff\n", $exception->__toString());
}
}