PPI\FrameworkTest\AppTest::testConstructor PHP Method

testConstructor() public method

public testConstructor ( )
    public function testConstructor()
    {
        $env = 'test_env';
        $debug = true;
        $rootDir = __DIR__;
        $name = 'testName';
        $app = new AppForTest(array('environment' => $env, 'debug' => $debug, 'rootDir' => $rootDir, 'name' => $name));
        $this->assertEquals($env, $app->getEnvironment());
        $this->assertEquals($debug, $app->isDebug());
        $this->assertEquals($rootDir, $app->getRootDir());
        $this->assertEquals($name, $app->getName());
        $this->assertFalse($app->isBooted());
        $this->assertLessThanOrEqual(microtime(true), $app->getStartTime());
        $this->assertNull($app->getServiceManager());
        $this->assertNull($app->getContainer());
    }