Permalink
Browse files

Fix: Modify unit tests for all warnings enabled in PHP and remove dep…

…ricated function calls
  • Loading branch information...
1 parent 07b3557 commit bb5bb1c37fbb2bcd427decec29d247e3956b9b9f @DataTables committed Mar 1, 2011
@@ -67,16 +67,16 @@ function fnReadDir( &$aReturn, $path )
/* Get the tests dynamically from the 'tests' directory, and their templates */
$aFiles = array();
- fnReadDir( &$aFiles, "tests" );
+ fnReadDir( $aFiles, "tests" );
for ( $i=0 ; $i<count($aFiles) ; $i++ )
{
$sTemplate;
$fp = fopen( $aFiles[$i], "r" );
- fscanf( $fp, "// DATA_TEMPLATE: %s", &$sTemplate );
+ fscanf( $fp, "// DATA_TEMPLATE: %s", $sTemplate );
fclose( $fp );
- $aPath = split('/', $aFiles[$i]);
+ $aPath = explode('/', $aFiles[$i]);
echo '{ '.
'"sTemplate": "'.$sTemplate.'", '.
@@ -19,7 +19,7 @@
<script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" src="../unit_test.js"></script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
@@ -19,7 +19,7 @@
<script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" src="../unit_test.js"></script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
@@ -19,7 +19,7 @@
<script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" src="../unit_test.js"></script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
@@ -24,7 +24,7 @@
} );
</script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
@@ -19,7 +19,7 @@
<script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" src="../unit_test.js"></script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
@@ -81,7 +81,7 @@
];
</script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";
@@ -19,7 +19,7 @@
<script type="text/javascript" language="javascript" src="../../js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" src="../unit_test.js"></script>
<?php
- $aScripts = split( ":", $_GET['scripts'] );
+ $aScripts = explode( ":", $_GET['scripts'] );
for ( $i=0 ; $i<count($aScripts) ; $i++ )
{
echo '<script type="text/javascript" language="javascript" src="../'.$aScripts[$i].'?rand='.rand().'"></script>'."\n";

0 comments on commit bb5bb1c

Please sign in to comment.