Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Added test class for Zepto\Zepto and fixed it so it didn’t break …
Browse files Browse the repository at this point in the history
…tests
  • Loading branch information
hassankhan committed Nov 19, 2013
1 parent 3b23d0b commit b5c0386
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions tests/Zepto/ZeptoTest.php
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.'
);
}
}

0 comments on commit b5c0386

Please sign in to comment.