Initial commit
This commit is contained in:
16
tests/XmlTest.php
Normal file
16
tests/XmlTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
use Pdahal\Xmpp\Xml\Xml;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class XmlTest extends TestCase
|
||||
{
|
||||
use Xml;
|
||||
public $host = 'www.test.com';
|
||||
|
||||
public function testOpeningStream(): void
|
||||
{
|
||||
$expected = "<?xml version='1.0' encoding='UTF-8'?><stream:stream to='www.test.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' version='1.0'>";
|
||||
$this->assertEquals($expected, $this->openXmlStream($this->host));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user