This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env php | |
<?php | |
if ($_SERVER['argc'] != 2) { | |
printf("%s: Converts assertType() into assertInternalType() or assertInstanceOf()\n\n", basename(__FILE__)); | |
printf("Usage: %s <tests directory>\n", basename(__FILE__)); | |
exit(11); | |
} | |
$directories = new RegexIterator( | |
new RecursiveIteratorIterator( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
$paths = array(); | |
if (isset($_SERVER['argv'])) | |
{ | |
$paths = $_SERVER['argv']; | |
array_shift($paths); | |
if (!$paths) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lingwa\Bundle\CoreBundle\Test; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
abstract class BaseTestCase extends WebTestCase | |
{ | |
static $cleared = false; | |
public static function setupBeforeClass() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* Convert SimpleTest tests to PHPUnit, mocks to Mockery. | |
* | |
* Caveats: | |
* - Assertion + return value can't be combined automatically | |
*/ |