forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
21 lines
502 B
PHP
21 lines
502 B
PHP
<?php
|
|
|
|
namespace vipnytt\SitemapParser\Tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use vipnytt\SitemapParser;
|
|
|
|
class ExceptionEncodingTest extends TestCase
|
|
{
|
|
/**
|
|
* Test if exception is thrown when trying to set encoding to `UTF-8`
|
|
*/
|
|
public function testExceptionEncoding()
|
|
{
|
|
if (!mb_internal_encoding('UTF-8')) {
|
|
$this->expectException('\vipnytt\SitemapParser\Exceptions\SitemapParserException');
|
|
new SitemapParser('SitemapParser');
|
|
}
|
|
}
|
|
}
|