object = new Derivation(); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { } /** * This is the default method to test, if the class still having * the same number of methods. */ public function testNumberOfMethodsInThisClass() { $methods = get_class_methods('Derivation'); $this->assertTrue(count($methods) == 14, count($methods)); } /** * @covers Derivation::prepareInformation * @todo Implement testprepareInformation(). */ public function testprepareInformation() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('prepareInformation', $methods ), 'exists method prepareInformation' ); $r = new ReflectionMethod('Derivation', 'prepareInformation'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'aData'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers Derivation::getRouteCondition * @todo Implement testgetRouteCondition(). */ public function testgetRouteCondition() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('getRouteCondition', $methods ), 'exists method getRouteCondition' ); $r = new ReflectionMethod('Derivation', 'getRouteCondition'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'aData'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers Derivation::GetAppParentIndex * @todo Implement testGetAppParentIndex(). */ public function testGetAppParentIndex() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('GetAppParentIndex', $methods ), 'exists method GetAppParentIndex' ); $r = new ReflectionMethod('Derivation', 'GetAppParentIndex'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'aData'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers Derivation::getAllUsersFromAnyTask * @todo Implement testgetAllUsersFromAnyTask(). */ public function testgetAllUsersFromAnyTask() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('getAllUsersFromAnyTask', $methods ), 'exists method getAllUsersFromAnyTask' ); $r = new ReflectionMethod('Derivation', 'getAllUsersFromAnyTask'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'sTasUid'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers Derivation::getUsersFullNameFromArray * @todo Implement testgetUsersFullNameFromArray(). */ public function testgetUsersFullNameFromArray() { $methods = get_class_methods($this->object); $this->assertTrue(in_array('getUsersFullNameFromArray', $methods), 'exists method getUsersFullNameFromArray'); $r = new ReflectionMethod('Derivation', 'getUsersFullNameFromArray'); $params = $r->getParameters(); $this->assertTrue($params[0]->getName() == 'aUsers'); $this->assertTrue($params[0]->isArray() == false); $this->assertTrue($params[0]->isOptional() == false); } /** * @covers Derivation::getNextAssignedUser * @todo Implement testgetNextAssignedUser(). */ public function testgetNextAssignedUser() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('getNextAssignedUser', $methods ), 'exists method getNextAssignedUser' ); $r = new ReflectionMethod('Derivation', 'getNextAssignedUser'); $params = $r->getParameters(); $this->assertTrue($params[0]->getName() == 'tasInfo'); $this->assertTrue($params[0]->isArray() == false); $this->assertTrue($params[0]->isOptional() == false); } /** * @covers Derivation::getDenpendentUser * @todo Implement testgetDenpendentUser(). */ public function testgetDenpendentUser() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('getDenpendentUser', $methods ), 'exists method getDenpendentUser' ); $r = new ReflectionMethod('Derivation', 'getDenpendentUser'); $params = $r->getParameters(); $this->assertTrue($params[0]->getName() == 'USR_UID'); $this->assertTrue($params[0]->isArray() == false); $this->assertTrue($params[0]->isOptional() == false); } /** * @covers Derivation::setTasLastAssigned * @todo Implement testsetTasLastAssigned(). */ public function testsetTasLastAssigned() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('setTasLastAssigned', $methods ), 'exists method setTasLastAssigned' ); $r = new ReflectionMethod('Derivation', 'setTasLastAssigned'); $params = $r->getParameters(); $this->assertTrue($params[0]->getName() == 'tasUid'); $this->assertTrue($params[0]->isArray() == false); $this->assertTrue($params[0]->isOptional() == false); $this->assertTrue($params[1]->getName() == 'usrUid'); $this->assertTrue($params[1]->isArray() == false); $this->assertTrue($params[1]->isOptional() == false); } /** * @covers Derivation::derivate * @todo Implement testderivate(). */ public function testderivate() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('derivate', $methods ), 'exists method derivate' ); $r = new ReflectionMethod('Derivation', 'derivate'); $params = $r->getParameters(); $this->assertTrue($params[0]->getName() == 'currentDelegation'); $this->assertTrue($params[0]->isArray() == false); $this->assertTrue($params[0]->isOptional() == true); $this->assertTrue($params[0]->getDefaultValue() == array()); $this->assertTrue($params[1]->getName() == 'nextDelegations'); $this->assertTrue($params[1]->isArray() == false); $this->assertTrue($params[1]->isOptional() == true); $this->assertTrue($params[1]->getDefaultValue() == array()); } /** * @covers Derivation::doDerivation * @todo Implement testdoDerivation(). */ public function testdoDerivation() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('doDerivation', $methods ), 'exists method doDerivation' ); $r = new ReflectionMethod('Derivation', 'doDerivation'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'currentDelegation'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue( $params[1]->getName() == 'nextDel'); $this->assertTrue( $params[1]->isArray() == false); $this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue( $params[2]->getName() == 'appFields'); $this->assertTrue( $params[2]->isArray() == false); $this->assertTrue( $params[2]->isOptional () == false); $this->assertTrue( $params[3]->getName() == 'aSP'); $this->assertTrue( $params[3]->isArray() == false); $this->assertTrue( $params[3]->isOptional () == true); $this->assertTrue( $params[3]->getDefaultValue() == ''); } /** * @covers Derivation::verifyIsCaseChild * @todo Implement testverifyIsCaseChild(). */ public function testverifyIsCaseChild() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('verifyIsCaseChild', $methods ), 'exists method verifyIsCaseChild' ); $r = new ReflectionMethod('Derivation', 'verifyIsCaseChild'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'sApplicationUID'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers Derivation::getDerivatedCases * @todo Implement testgetDerivatedCases(). */ public function testgetDerivatedCases() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('getDerivatedCases', $methods ), 'exists method getDerivatedCases' ); $r = new ReflectionMethod('Derivation', 'getDerivatedCases'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'sParentUid'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue( $params[1]->getName() == 'sDelIndexParent'); $this->assertTrue( $params[1]->isArray() == false); $this->assertTrue( $params[1]->isOptional () == false); } /** * @covers Derivation::getGrpUser * @todo Implement testgetGrpUser(). */ public function testgetGrpUser() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('getGrpUser', $methods ), 'exists method getGrpUser' ); $r = new ReflectionMethod('Derivation', 'getGrpUser'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'aData'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } }