object = new FilesFilter(); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { } public function testEmpty() { $atteso = '{}'; $atteso = '[]'; $esito = $this->object->toJson(); $this->assertEquals($atteso, $esito); } public function testAddGif() { $atteso = '{"title":"Image files","extensions":"gif"}'; $this->object->addExt('gif'); $esito = $this->object->toJson(); $this->assertEquals($atteso, $esito); } }