PHPUNIT如何将当前类放入另一个文件

PHPUNIT如何将当前类放入另一个文件,phpunit,Phpunit,我有一个由其他php文件调用的公共类a。 我想把当前类的名称输入到类A中 此处A类: class A extends PHPUnit_Framework_TestCase { ............................ public static function setUpBeforeClass() { try { **Here the function to get the class** ?????? self::$selenium = new ObjetCo

我有一个由其他php文件调用的公共类a。 我想把当前类的名称输入到类A中

此处A类

class A extends PHPUnit_Framework_TestCase
{

............................

public static function setUpBeforeClass()
{

try {
**Here the function to get the class**  ??????
    self::$selenium = new ObjetConnexion();
    self::$tab_castest= array();
    self::$nbjeu = -1;
 } catch (Testing_Selenium_Exception $e) {
        echo $e;
    }
}

}
B类: 类BTest扩展了 {

以及phpunit.xml的内容:

Nouveaux\u服务/BTest.php
Nouveaux_services/CTest.php
Nouveaux_services/DTest.php


感谢您的帮助

您可以使用
get\u called\u class()

你是说?
protected function setUp()
{
    ...

}
public function testConnexion()
{  
......
}
}
  <file>Nouveaux_services/BTest.php</file>
  <file>Nouveaux_services/CTest.php</file>
  <file>Nouveaux_services/DTest.php</file>

</testsuite>