<?php
require_once 'C:\Tools\Works\php\sample01\Employee.php';
/**
* Test class for Employee.
* Generated by PHPUnit on 2011-11-23 at 07:15:11.
*/
class EmployeeTest extends PHPUnit_Framework_TestCase
{
/**
* @var Employee
*/
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 Employee;
}
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*/
protected function tearDown()
{
}
/**
* @covers {className}::{origMethodName}
* @todo Implement testGetAge().
*/
public function testGetAge()
{
$this->object->setAge(100);
$this->assertEquals(100, $this->object->getAge());
/*
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
*/
}
/**
* @covers {className}::{origMethodName}
* @todo Implement testGetName().
*/
public function testGetName()
{
$this->object->setName("111");
$this->assertEquals("111", $this->object->getName());
/*
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
*/
}
/**
* @covers {className}::{origMethodName}
* @todo Implement testSetAge().
*/
public function testSetAge()
{
$this->object->setAge(100);
$this->assertEquals(100, $this->object->getAge());
/*
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
*/
}
/**
* @covers {className}::{origMethodName}
* @todo Implement testSetName().
*/
public function testSetName()
{
$this->object->setName("111");
$this->assertEquals("111", $this->object->getName());
/*
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
);*/
}
}
?>