-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
353 additions
and
58 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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* | ||
* @author Rougin Gutib <[email protected]> | ||
*/ | ||
class FieldHelper | ||
class DataHelper | ||
{ | ||
/** | ||
* @param string[] $fields | ||
|
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
namespace Staticka\Expresso\Routes; | ||
|
||
use Staticka\Expresso\Testcase; | ||
|
||
/** | ||
* @package Staticka | ||
* | ||
* @author Rougin Gutib <[email protected]> | ||
*/ | ||
class BuildTest extends Testcase | ||
{ | ||
/** | ||
* @var \Staticka\Expresso\Express | ||
*/ | ||
protected $app; | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function doSetUp() | ||
{ | ||
$this->app = $this->setApp(); | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
public function test_build_without_staticka_yml() | ||
{ | ||
$expected = '"staticka.yml" not yet created'; | ||
|
||
/** @var string */ | ||
$expected = json_encode($expected); | ||
|
||
$this->setRequest('POST', '/build'); | ||
|
||
$this->app->run(); | ||
|
||
$this->expectOutputString($expected); | ||
} | ||
} |
Oops, something went wrong.