<?php
|
/**
|
* User: Cristiano Magro
|
* Date: 09/07/2019
|
*/
|
|
class FilterExtTest extends PHPUnit_Framework_TestCase
|
{
|
/** @var FilterExt $object */
|
protected $object;
|
|
/**
|
* Set up fixture, inizializzazione dei test.
|
* Eseguito prima di ogni test
|
*/
|
protected function setUp()
|
{
|
$this->object = new FilterExt();
|
}
|
|
/**
|
* Tears down the fixture, for example, closes a network connection.
|
* This method is called after a test is executed.
|
*/
|
protected function tearDown()
|
{
|
|
}
|
|
public function testCreateNewFilter()
|
{
|
$atteso = '{"titolo":"titolo","extensions":"ext"}';
|
$obj = new FilterExt('titolo', 'ext');
|
|
$this->assertEquals($atteso, $obj->getFilter());
|
}
|
|
}
|