How to run a single test method in simpletest unittest class ?
        Posted  
        
            by 
                shikhar
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by shikhar
        
        
        
        Published on 2010-08-12T06:52:04Z
        Indexed on 
            2011/02/22
            23:25 UTC
        
        
        Read the original article
        Hit count: 308
        
simpletest
This is my Unit Test class
<?
require_once '../simpletest/unit_tester.php';
require_once '../simpletest/reporter.php';
class Academic extends UnitTestCase
{
    function setUp()
    {
    }
    function tearDown()
    {                           
    }
    function testAc1()
    {          
    } 
    function testAc4()
    {         
    }     
    function testAc7()
    {        
    }
}
$test = new Academic();
$test->run(new HtmlReporter());
?>
When I run this script all methods viz., testAc1, testAc4, testAc7 etc are run. Is there a way to execute just a single method ?
Thanks, Shikhar
© Stack Overflow or respective owner