for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Graze\CiffRenderer\Test;
use Graze\CiffRenderer\Field\Parser\StaticGraphicParser;
class StaticGraphicParserTest extends \PHPUnit_Framework_TestCase
{
protected $parser;
public function setUp()
$pathToFixture = sprintf('%s/Fixture/StaticGraphicParserFixture.xml', dirname(__FILE__));
$xml = simplexml_load_file($pathToFixture);
$this->parser = new StaticGraphicParser();
$this->parser->setXmlField($xml);
}
public function testGetGraphic()
$this->assertEquals('w:/example.bmp', $this->parser->getGraphic());