forked from loafle/openapi-generator-original
[Slim] Add PHP CodeSniffer to check coding style (#897)
* [Slim] Add PHP CodeSniffer package * [Slim] Add phpcsStandard generator option We follow PSR-2 coding style guide in PHP generators. It might be convenient for users to specify own coding standard without modifying templates. That's why I've added this option. At first, I thought to add option validation and accept only standards from predefined list. But this option also can be a full path to the standard's root directory, I've changed my mind. User should use this option with caution. Ref to all PHP CodeSniffer CLI options: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage * [Slim] Extend readme with PHP CodeSniffer docs * [Slim] Format templates to meet PSR-2 * [Slim] Refresh samples
This commit is contained in:
@@ -36,69 +36,70 @@ use OpenAPIServer\Model\MapTest;
|
||||
* @link https://github.com/openapitools/openapi-generator
|
||||
* @coversDefaultClass \OpenAPIServer\Model\MapTest
|
||||
*/
|
||||
class MapTestTest extends \PHPUnit_Framework_TestCase {
|
||||
class MapTestTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Setup before running any test cases
|
||||
*/
|
||||
public static function setUpBeforeClass() {
|
||||
|
||||
public static function setUpBeforeClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Setup before running each test case
|
||||
*/
|
||||
public function setUp() {
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running each test case
|
||||
*/
|
||||
public function tearDown() {
|
||||
|
||||
public function tearDown()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean up after running all test cases
|
||||
*/
|
||||
public static function tearDownAfterClass() {
|
||||
|
||||
public static function tearDownAfterClass()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test "MapTest"
|
||||
*/
|
||||
public function testMapTest() {
|
||||
public function testMapTest()
|
||||
{
|
||||
$testMapTest = new MapTest();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "mapMapOfString"
|
||||
*/
|
||||
public function testPropertyMapMapOfString() {
|
||||
|
||||
public function testPropertyMapMapOfString()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "mapOfEnumString"
|
||||
*/
|
||||
public function testPropertyMapOfEnumString() {
|
||||
|
||||
public function testPropertyMapOfEnumString()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "directMap"
|
||||
*/
|
||||
public function testPropertyDirectMap() {
|
||||
|
||||
public function testPropertyDirectMap()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Test attribute "indirectMap"
|
||||
*/
|
||||
public function testPropertyIndirectMap() {
|
||||
|
||||
public function testPropertyIndirectMap()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user