ExceptionTest.php
12 lines
| 1 | <?php |
| 2 | use PHPUnit\Framework\TestCase; |
| 3 | use Microsoft\Graph\Exception\GraphException; |
| 4 | |
| 5 | class ExceptionTest extends TestCase |
| 6 | { |
| 7 | public function testToString() |
| 8 | { |
| 9 | $exception = new GraphException('bad stuff', '404'); |
| 10 | $this->assertEquals("Microsoft\Graph\Exception\GraphException: [404]: bad stuff\n", $exception->__toString()); |
| 11 | } |
| 12 | } |