Cleanup and reformat code

This commit is contained in:
Ivan Shalganov
2014-04-17 23:27:59 +04:00
parent 0e8880faf9
commit 2b1a8652e2
6 changed files with 61 additions and 184 deletions

View File

@@ -574,7 +574,8 @@ class Fenom
* @param string $name test name
* @param string $code test PHP code. Code may contains placeholder %s, which will be replaced by test-value. For example: is_callable(%s)
*/
public function addTest($name, $code) {
public function addTest($name, $code)
{
$this->_tests[$name] = $code;
}
@@ -583,7 +584,8 @@ class Fenom
* @param string $name
* @return string|bool
*/
public function getTest($name) {
public function getTest($name)
{
return isset($this->_tests[$name]) ? $this->_tests[$name] : false;
}