Location: PHPKode > projects > Phalcon PHP > phalcon-cphalcon-b0abb3e/unit-tests/InitTest.php
<?php

/*
  +------------------------------------------------------------------------+
  | Phalcon Framework                                                      |
  +------------------------------------------------------------------------+
  | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com)       |
  +------------------------------------------------------------------------+
  | This source file is subject to the New BSD License that is bundled     |
  | with this package in the file docs/LICENSE.txt.                        |
  |                                                                        |
  | If you did not receive a copy of the license and are unable to         |
  | obtain it through the world-wide-web, please send an email             |
  | to hide@address.com so we can send you a copy immediately.       |
  +------------------------------------------------------------------------+
  | Authors: Andres Gutierrez <hide@address.com>                      |
  |          Eduar Carvajal <hide@address.com>                         |
  +------------------------------------------------------------------------+
*/

class InitTest extends PHPUnit_Framework_TestCase {

	public function testExtensionLoaded(){

    //Check if phalcon ext was loaded
		$this->assertTrue(in_array('phalcon', get_loaded_extensions()));

    //Force to init auto-globals
    count($_SERVER);
    count($_POST);
    count($_GET);
    count($_REQUEST);    

    //Enable garbage collector
    gc_enable();

	}

}
Return current item: Phalcon PHP