public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     //		print("In startTestSuite - for suite = {$suite->getName()}\n");
     KalturaLog::debug("In startTestSuite - for suite = {$suite->getName()}");
     if ($suite instanceof PHPUnit_Framework_TestSuite_DataProvider) {
         //Get the test procedure name from the suite name which is (testCase::testProcedure)
         $testNames = explode("::", $suite->getName());
         $testName = $testNames[0];
         if (isset($testNames[1])) {
             $testName = $testNames[1];
         }
         $testCase = $testNames[0];
         if (is_null(KalturaTestListener::$testCaseFailures)) {
             KalturaLog::debug("KalturaTestCaseFailures is null creating empty test case failures for {$testCase}\n");
             KalturaTestListener::$testCaseFailures = new KalturaTestCaseFailures($testName);
         }
         $testProcedure = KalturaTestListener::$testCaseFailures->getTestProcedureFailure($testName);
         //if the test procedure exists
         if (!$testProcedure) {
             KalturaTestListener::$testCaseFailures->addTestProcedureFailure(new KalturaTestProcedureFailure($testName));
         } else {
             KalturaLog::alert("Test procedure [{$testName}] already added");
         }
     } else {
         //Check if the test belongs to the same test case failures (by the first test of the suite)
         $test = $suite->testAt(0);
         if ($test instanceof PHPUnit_Framework_TestSuite_DataProvider) {
             $test = $test->testAt(0);
         }
         $class = get_class($test);
         //if the new test comes from a new file (testCase)
         if (KalturaTestListener::$currentTestCase != $class) {
             //Gets the class path for the failure file
             $classPath = KAutoloader::getClassFilePath($class);
             KalturaTestListener::$failureFilePath = dirname($classPath) . "/testsData/{$class}.failures";
             KalturaTestListener::$dataFilePath = dirname($classPath) . "/testsData/{$class}.data";
             $this->writeFailuresToFile();
             //Opens the new failure file for the new test
             KalturaTestListener::$failuresFile = fopen(KalturaTestListener::$failureFilePath, "w+");
             //Change the current test case
             KalturaTestListener::$currentTestCase = $class;
             //Create new test case failures for the new test case
             KalturaTestListener::$testCaseFailures = new KalturaTestCaseFailures(KalturaTestListener::$currentTestCase);
             //TODO: get the test procedure name from the suite
             KalturaTestListener::$testCaseFailures->setTestProceduresFailures(array(new KalturaTestProcedureFailure("Unknown")));
         } else {
         }
     }
 }