Location: PHPKode > scripts > SQL Solution > convissor-sql_solution-f53b170/SQLSolution/Test/General/CopyObjectContentsIntoSQLTest.php
<?php /** @package SQLSolution_Test */

/**
 * Tests the SQL Solution's CopyObjectContentsIntoSQL method
 *
 * @package SQLSolution_Test
 * @author Daniel Convissor <hide@address.com>
 * @copyright The Analysis and Solutions Company, 2001-2011
 * @license http://www.analysisandsolutions.com/software/license.htm Simple Public License
 * @link http://www.analysisandsolutions.com/software/sql/sql.htm
 */
class SQLSolution_Test_General_CopyObjectContentsIntoSQLTest extends SQLSolution_Test_General {
	public function testCopyObjectContentsIntoSQL() {
		global $obj;
		$obj = new foo;
		$this->sql->CopyObjectContentsIntoSQL(__FILE__, __LINE__, 'obj');
		$this->assertEquals('wiki', $this->sql->bar);
	}
}

/**
 * A temporary class that the test will copy from
 *
 * @package SQLSolution_Test
 */
class foo {
	/**
	 * @var string
	 */
	public $bar = 'wiki';
}
Return current item: SQL Solution