<?php
/**
* Created by JetBrains PhpStorm.
* User: aleksandr
* Date: 27.01.13
* Time: 18:10
* To change this template use File | Settings | File Templates.
*/
class new_class {
public function returnZero(){
return 0;
}
public function returnOne() {
return 1;
}
}
<?php
/**
* Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-01-27 at 18:10:42.
*/
class new_classTest extends PHPUnit_Framework_TestCase
{
/**
* @var new_class
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
* This method is called before a test is executed.
*/
protected function setUp()
{
$this->object = new new_class;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* @covers new_class::returnZero
* @todo Implement testReturnZero().
*/
public function testReturnZero()
{
$this->assertEquals(0, $this->object->returnZero());
}
/**
* @covers new_class::returnOne
* @todo Implement testReturnOne().
*/
public function testReturnOne()
{
$this->assertEquals(0, $this->object->returnOne());
}
}