for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Grandstream-XMLApp
*
* Copyright (c) 2017 pudelek.org.pl
* @license MIT License (MIT)
* For the full copyright and license information, please view source file
* that is bundled with this package in the file LICENSE
* @author Marcin Pudełek <[email protected]>
*/
namespace mrcnpdlk\Grandstream\XMLApp;
use mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemBitmap;
use mrcnpdlk\Grandstream\XMLApp\Application\Model\Components\ElemInput;
use mrcnpdlk\Grandstream\XMLApp\Helper\Rectangle;
class ApplicationTest extends TestCase
{
public function testComponentElemInput()
$oInput = new ElemInput('elem_input');
$this->assertEquals(true, is_string($oInput->getXml()->asText()));
}
public function testComponentElementBitmap(){
$oBitmap = new ElemBitmap('',new Rectangle(10));
$this->assertEquals(true,is_string($oBitmap->getXml()->asText()));