for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Isign\Tests;
use Isign\DocumentTypeGuesser;
class DocumentTypeGuesserTest extends TestCase
{
public function testPdfGuess()
$obj = new DocumentTypeGuesser();
$type = $obj->guess(__DIR__ . '/data/document.pdf');
$this->assertSame('pdf', $type);
}
/**
* @expectedException Isign\Exception\NotSupportedDocumentType
*/
public function testNoTypeMatch()
$obj->setGuessers([]);
$this->assertSame(null, $type);