-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3015ecc
commit b3230b1
Showing
15 changed files
with
304 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
/vendor | ||
composer.phar | ||
composer.lock | ||
.DS_Store | ||
.buildpath | ||
.settings | ||
.project | ||
.idea |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
class {{className}}Test extends TestCase | ||
{ | ||
{{methods}} | ||
|
18 changes: 9 additions & 9 deletions
18
src/Davispeixoto/TestGenerator/Templates/methodWithDataProvider.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/** | ||
* Tests {{className}}::{{methodNameLowerCase}} | ||
* | ||
* @dataProvider provider{{methodName}} | ||
*/ | ||
public function test{{methodName}}({{methodArgs}}) | ||
{ | ||
//@TODO implement test{{methodName}} body | ||
} | ||
/** | ||
* Tests {{className}}::{{methodNameLowerCase}} | ||
* | ||
* @dataProvider provider{{methodName}} | ||
*/ | ||
public function test{{methodName}}({{methodArgs}}) | ||
{ | ||
//@TODO implement test{{methodName}} body | ||
} | ||
|
14 changes: 7 additions & 7 deletions
14
src/Davispeixoto/TestGenerator/Templates/methodWithoutDataProvider.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* Tests {{className}}::{{methodNameLowerCase}} | ||
*/ | ||
public function test{{methodName}}() | ||
{ | ||
//@TODO implement test{{methodName}} body | ||
} | ||
/** | ||
* Tests {{className}}::{{methodNameLowerCase}} | ||
*/ | ||
public function test{{methodName}}() | ||
{ | ||
//@TODO implement test{{methodName}} body | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/** | ||
* Data provider function for {{className}}::{{methodNameLowerCase}} | ||
*/ | ||
public function provider{{methodName}}() | ||
{ | ||
return $this->dataProvider('{{csvFileName}}.csv'); | ||
} | ||
/** | ||
* Data provider function for {{className}}::{{methodNameLowerCase}} | ||
*/ | ||
public function provider{{methodName}}() | ||
{ | ||
return $this->dataProvider('{{csvFileName}}.csv'); | ||
} | ||
|
Oops, something went wrong.