Skip to content

Commit

Permalink
auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Jul 14, 2015
1 parent 0f721a8 commit a668fde
Show file tree
Hide file tree
Showing 8 changed files with 1,382 additions and 12 deletions.
1 change: 1 addition & 0 deletions docs/tasks/Assets.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Assets Tasks

## Minify


Expand Down
6 changes: 3 additions & 3 deletions docs/tasks/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ Runs PHP server and stops it when task finishes.
``` php
<?php
// run server in /public directory
$this->taskServer(8000)
$this->taskPhpServer(8000)
->dir('public')
->run();

// run with IP 0.0.0.0
$this->taskServer(8000)
$this->taskPhpServer(8000)
->host('0.0.0.0')
->run();

// execute server in background
$this->taskServer(8000)
$this->taskPhpServer(8000)
->background()
->run();
?>
Expand Down
2 changes: 1 addition & 1 deletion docs/tasks/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $this->taskDockerCommit($containerId)
// alternatively you can take the result from DockerRun task:
$result = $this->taskDockerRun('db')
$result = $this->taskDockerRun('db)
->exec('./prepare_database.sh')
->run();
Expand Down
11 changes: 3 additions & 8 deletions docs/tasks/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,12 @@ $this->taskReplaceInFile('config.yml')
->regex('~^service:~')
->to('services:')
->run();

$this->taskReplaceInFile('box/robo.txt')
->from(array('##dbname##', '##dbhost##'))
->to(array('robo', 'localhost'))
->run();
?>
```

* `regex(string)` regex to match string to be replaced
* `from(string|array)` string(s) to be replaced
* `to(string|array)` value(s) to be set as a replacement
* `from(string)` string to be replaced
* `to(string)` value to be set as a replacement



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

26 changes: 26 additions & 0 deletions tests/_helpers/CliGuy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php


/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
*
* @SuppressWarnings(PHPMD)
*/
class CliGuy extends \Codeception\Actor
{
use _generated\CliGuyActions;

/**
* Define custom actions here
*/
}
26 changes: 26 additions & 0 deletions tests/_helpers/CodeGuy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php


/**
* Inherited Methods
* @method void wantToTest($text)
* @method void wantTo($text)
* @method void execute($callable)
* @method void expectTo($prediction)
* @method void expect($prediction)
* @method void amGoingTo($argumentation)
* @method void am($role)
* @method void lookForwardTo($achieveValue)
* @method void comment($description)
* @method \Codeception\Lib\Friend haveFriend($name, $actorClass = null)
*
* @SuppressWarnings(PHPMD)
*/
class CodeGuy extends \Codeception\Actor
{
use _generated\CodeGuyActions;

/**
* Define custom actions here
*/
}
Loading

0 comments on commit a668fde

Please sign in to comment.