Scalr\Tests\Service\OpenStack\Services\Servers\Type\ServerStatusTest::provider PHP Method

provider() public method

public provider ( )
    public function provider()
    {
        $arr = array(array('invalid_name', '', true));
        $ref = new ReflectionClass($this->getOpenStackClassName(self::TYPE_CLASS_NAME));
        $len = strlen('STATUS_');
        foreach ($ref->getConstants() as $name => $value) {
            $arr[] = array(lcfirst($this->camelize(substr($name, $len))), $value, false);
        }
        return $arr;
    }
ServerStatusTest