This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test class for
Zepto\Zepto
and fixed it so it didn’t break …
…tests
- Loading branch information
1 parent
3b23d0b
commit b5c0386
Showing
1 changed file
with
69 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
namespace Zepto; | ||
|
||
/** | ||
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2013-11-20 at 00:37:02. | ||
*/ | ||
class ZeptoTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var Zepto | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() | ||
{ | ||
$_SERVER['DOCUMENT_ROOT'] = '/var/www'; | ||
$_SERVER['SCRIPT_FILENAME'] = '/var/www/zepto/index.php'; | ||
$_SERVER['SERVER_NAME'] = 'zepto'; | ||
$_SERVER['SERVER_PORT'] = '80'; | ||
$_SERVER['SCRIPT_NAME'] = '/zepto/'; | ||
$_SERVER['REQUEST_URL'] = '/zepto/'; | ||
$_SERVER['REQUEST_URI'] = '/zepto/'; | ||
$_SERVER['PATH_INFO'] = '/bar/xyz'; | ||
$_SERVER['REQUEST_METHOD'] = 'GET'; | ||
$_SERVER['QUERY_STRING'] = 'one=1&two=2&three=3'; | ||
$_SERVER['HTTPS'] = ''; | ||
$_SERVER['REMOTE_ADDR'] = '127.0.0.1'; | ||
unset($_SERVER['CONTENT_TYPE'], $_SERVER['CONTENT_LENGTH']); | ||
|
||
include ROOT_DIR . 'config.php'; | ||
$this->object = new Zepto($config); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers Zepto\Zepto::run | ||
* @todo Implement testRun(). | ||
*/ | ||
public function testRun() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers Zepto\Zepto::run_hooks | ||
* @todo Implement testRun_hooks(). | ||
*/ | ||
public function testRun_hooks() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
} |