Once each individual test case is created a suite can be created

Creating a test suite
<?php
    $suite 
= new PHPUnit_TestSuite();
 
    
$test[] = new EmailAddressTestCase('testLocalPart');
    
$test[] = new EmailAddressTestCase('testDomain');
    
    
$suite->addTest($test[0]);
    
$suite->addTest($test[1]);
 
    
$result PHPUnit::run($suite);
 
    echo 
$result->toString();
 
?>
    
Creating a test suite automatically
<?php
    $suite 
= new PHPUnit_TestSuite('EmailAddressTestCase');
    
    
$result PHPUnit::run($suite);
    
    echo 
$result->toString();
?>