Skip to content

Commit a668fde

Browse files
committed
auto-update
1 parent 0f721a8 commit a668fde

File tree

8 files changed

+1382
-12
lines changed

8 files changed

+1382
-12
lines changed

docs/tasks/Assets.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Assets Tasks
2+
23
## Minify
34

45

docs/tasks/Development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,17 @@ Runs PHP server and stops it when task finishes.
166166
``` php
167167
<?php
168168
// run server in /public directory
169-
$this->taskServer(8000)
169+
$this->taskPhpServer(8000)
170170
->dir('public')
171171
->run();
172172

173173
// run with IP 0.0.0.0
174-
$this->taskServer(8000)
174+
$this->taskPhpServer(8000)
175175
->host('0.0.0.0')
176176
->run();
177177

178178
// execute server in background
179-
$this->taskServer(8000)
179+
$this->taskPhpServer(8000)
180180
->background()
181181
->run();
182182
?>

docs/tasks/Docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $this->taskDockerCommit($containerId)
3939
4040
// alternatively you can take the result from DockerRun task:
4141
42-
$result = $this->taskDockerRun('db')
42+
$result = $this->taskDockerRun('db)
4343
->exec('./prepare_database.sh')
4444
->run();
4545

docs/tasks/File.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,12 @@ $this->taskReplaceInFile('config.yml')
3939
->regex('~^service:~')
4040
->to('services:')
4141
->run();
42-
43-
$this->taskReplaceInFile('box/robo.txt')
44-
->from(array('##dbname##', '##dbhost##'))
45-
->to(array('robo', 'localhost'))
46-
->run();
4742
?>
4843
```
4944

5045
* `regex(string)` regex to match string to be replaced
51-
* `from(string|array)` string(s) to be replaced
52-
* `to(string|array)` value(s) to be set as a replacement
46+
* `from(string)` string to be replaced
47+
* `to(string)` value to be set as a replacement
5348

5449

5550

@@ -73,7 +68,7 @@ $this->taskWriteToFile('blogpost.md')
7368
* `lines(array $lines)` add more lines
7469
* `text($text)` add a text
7570
* `textFromFile($filename)` add a text from a file
76-
* `place($name, $val)` substitute a placeholder with value, placeholder must be enclosed by `{}`
71+
* `place($name, $val)` substitute a placeholder with value, placeholder must be enclosed by {{}}
7772
* `replace($string, $replacement)` replace any string with value
7873
* `regexReplace($pattern, $replacement)` replace any string with value using regular expression
7974

tests/_helpers/CliGuy.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
4+
/**
5+
* Inherited Methods
6+
* @method void wantToTest($text)
7+
* @method void wantTo($text)
8+
* @method void execute($callable)
9+
* @method void expectTo($prediction)
10+
* @method void expect($prediction)
11+
* @method void amGoingTo($argumentation)
12+
* @method void am($role)
13+
* @method void lookForwardTo($achieveValue)
14+
* @method void comment($description)
15+
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
16+
*
17+
* @SuppressWarnings(PHPMD)
18+
*/
19+
class CliGuy extends \Codeception\Actor
20+
{
21+
use _generated\CliGuyActions;
22+
23+
/**
24+
* Define custom actions here
25+
*/
26+
}

tests/_helpers/CodeGuy.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
4+
/**
5+
* Inherited Methods
6+
* @method void wantToTest($text)
7+
* @method void wantTo($text)
8+
* @method void execute($callable)
9+
* @method void expectTo($prediction)
10+
* @method void expect($prediction)
11+
* @method void amGoingTo($argumentation)
12+
* @method void am($role)
13+
* @method void lookForwardTo($achieveValue)
14+
* @method void comment($description)
15+
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
16+
*
17+
* @SuppressWarnings(PHPMD)
18+
*/
19+
class CodeGuy extends \Codeception\Actor
20+
{
21+
use _generated\CodeGuyActions;
22+
23+
/**
24+
* Define custom actions here
25+
*/
26+
}

0 commit comments

Comments
 (0)