Scalr\Tests\Functional\Api\ApiTestCase::__construct PHP Method

__construct() public method

public __construct ( $name = null, $data = [], $dataName = null )
    public function __construct($name = null, $data = [], $dataName = null)
    {
        parent::__construct($name, $data, $dataName);
        if (empty(static::$apiController)) {
            static::$apiController = new ApiController();
        }
    }

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  * @see ApiTestCase::setUpBeforeClass()
  */
 public function __construct($name = null, $data = [], $dataName = null)
 {
     parent::__construct($name, $data, $dataName);
     if (empty(static::$userSpec)) {
         static::$userSpec = new SpecManager(self::$apiVersion, 'user');
     }
     if (empty(static::$accountSpec)) {
         static::$accountSpec = new SpecManager(self::$apiVersion, 'account');
     }
 }
All Usage Examples Of Scalr\Tests\Functional\Api\ApiTestCase::__construct