2017 © Pedro Peláez
 

library generatestring

generate a little string

image

graychen/generatestring

generate a little string

  • Friday, August 25, 2017
  • by Graychen
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2,535 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

this is a library for generate string

Latest Stable Version Total Downloads License StyleCI Build Status Scrutinizer Code Quality Code Coverage Build Status, (*1)

how to use

``` php <?php namespace graychen\Test;, (*2)

use graychen\generatestring;, (*3)

class generatestringTest extends \PHPUnit_Framework_TestCase { private $string;, (*4)

public function setUp()
{
    $this->string=new generatestring();
}
public function testGetchars()
{
    $result = $this->string->getchars("a", 10);
    $this->assertEquals('aaaaaaaaaa', $result);
}

public function testGetchars_t()
{
    $result = $this->string->getchars_t("abc", 10);
    $this->assertEquals('abcabcabcabcabcabcabcabcabcabc', $result);
}

public function testGetchars_p()
{
    $result = $this->string->getchars_p("abc", 10);
    $this->assertEquals('abcabcabcabcabcabcabcabcabcabc', $result);
}

public function testGetcharscmp()
{
    $result = $this->string->getcharscmp("abc", 10);
    $this->assertEquals('abcabcabca', $result);
}

public function testGetchars_s()
{
    $result = $this->string->getchars_s("abc", 10);
    $this->assertEquals('abcabcabcabcabcabcabcabcabcabc', $result);
}

}, (*5)

```, (*6)

The Versions

25/08 2017

dev-master

9999999-dev

generate a little string

  Sources   Download

MIT

The Development Requires

by 陈家辉

25/08 2017

dev-develop

dev-develop

generate a little string

  Sources   Download

MIT

The Development Requires

by 陈家辉

25/08 2017

dev-testing

dev-testing

generate a little string

  Sources   Download

MIT

The Development Requires

by 陈家辉

25/08 2017

v1.0.0

1.0.0.0

generate a little string

  Sources   Download

MIT

The Development Requires

by 陈家辉