Example #1
0
 /**
  * Test pregMatchArray when input is not a string
  * @expectedException Exception
  * @expectedExceptionMessage $subject is not a string
  */
 function testPregMatchNotString()
 {
     Utils::pregMatchArray(array('/foo/i'), array('foo'));
 }
Example #2
0
<?php

/**
 * Hex Dump string
 */
require dirname(__FILE__) . '/../lib/FusePump/Cli/Utils.php';
use FusePump\Cli\Utils;
echo Utils::hexDump('This is a string of data');