Created
October 15, 2011 17:30
-
-
Save hidenorigoto/1289863 to your computer and use it in GitHub Desktop.
StageHand_TestRunner
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 | |
require_once __DIR__ . '/TestCaseBase.php'; | |
class TargetTest extends TestCaseBase | |
{ | |
public function testAlwaysTrue() | |
{ | |
$this->assertTrue(true); | |
} | |
} |
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
#!/bin/sh | |
phpunitrunner --test-file-pattern=TargetTest . | |
# --test-file-patternの対象のベースクラスもテストとして実行されてしまう |
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 | |
// ここはabstractにしておく必要がある | |
abstract class TestCaseBase extends PHPUnit_Framework_TestCase | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment