* Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @category      Framework
 * @package       Pfw
 * @author        Sean Sitter <*****@*****.**>
 * @copyright     2008 The Picnic PHP Framework
 * @license       http://www.apache.org/licenses/LICENSE-2.0
 * @link          http://www.picnicphp.com
 * @since         0.10
 */
require '../../Pfw/UnitTest/PHPUnit/FwkTestCase.php';
Pfw_Loader::loadInclude('Pfw_Core_Base');
class Pfw_Core_Base_Inc_Test extends Pfw_UnitTest_PHPUnit_FwkTestCase
{
    function testArrayToHash()
    {
        $arr = array('first' => 'one', 'second' => 'two', 'third', 'fourth');
        $arr = array_to_hash($arr);
        $this->assertEquals(array('first' => 'one', 'second' => 'two', 'third' => 'third', 'fourth' => 'fourth'), $arr);
    }
}
Example #2
0
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
 * Short description for file
 *
 * Long description for file (if any)...
 *
 * @category      Framework
 * @package       Pfw
 * @author        Sean Sitter <*****@*****.**>
 * @copyright     2010 The Picnic PHP Framework
 * @license       http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @link          http://www.picnicphp.com
 * @since         0.10
 * @filesource
 */
require "Pfw/Loader.php";
Pfw_Loader::loadInclude("Pfw_Core_Base");
Pfw_Loader::loadClass("Pfw_Config");
Pfw_Loader::loadClass('Pfw_Exception_User');
Pfw_Loader::loadClass('Pfw_Exception_System');
Pfw_Loader::loadClass('Pfw_Model');
Pfw_Loader::loadClass('Pfw_Cache_Local');
Pfw_Loader::loadClass('Pfw_Request');