object = new JavaBridgePM(); } /** * 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('JavaBridgePM'); $this->assertTrue( count($methods) == 3); } /** * @covers JavaBridgePM::checkJavaExtension * @todo Implement testcheckJavaExtension(). */ public function testcheckJavaExtension() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('checkJavaExtension', $methods ), 'exists method checkJavaExtension' ); $r = new ReflectionMethod('JavaBridgePM', 'checkJavaExtension'); $params = $r->getParameters(); } /** * @covers JavaBridgePM::convertValue * @todo Implement testconvertValue(). */ public function testconvertValue() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('convertValue', $methods ), 'exists method convertValue' ); $r = new ReflectionMethod('JavaBridgePM', 'convertValue'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'value'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue( $params[1]->getName() == 'className'); $this->assertTrue( $params[1]->isArray() == false); $this->assertTrue( $params[1]->isOptional () == false); } /** * @covers JavaBridgePM::generateJrxmlFromDynaform * @todo Implement testgenerateJrxmlFromDynaform(). */ public function testgenerateJrxmlFromDynaform() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('generateJrxmlFromDynaform', $methods ), 'exists method generateJrxmlFromDynaform' ); $r = new ReflectionMethod('JavaBridgePM', 'generateJrxmlFromDynaform'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'outDocUid'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); $this->assertTrue( $params[1]->getName() == 'dynaformUid'); $this->assertTrue( $params[1]->isArray() == false); $this->assertTrue( $params[1]->isOptional () == false); $this->assertTrue( $params[2]->getName() == 'template'); $this->assertTrue( $params[2]->isArray() == false); $this->assertTrue( $params[2]->isOptional () == false); } }