From df2af797039e1343df08f80d88e977b1ad0378f2 Mon Sep 17 00:00:00 2001 From: Erik Amaru Ortiz Date: Fri, 18 May 2012 09:28:10 -0400 Subject: [PATCH] Adding three skel classes to complete its phpunit --- .../unit/gulliver/system/PHPSQLParserTest.php | 64 ++++ .../gulliver/system/dynaFormHandlerTest.php | 292 ++++++++++++++++++ tests/unit/gulliver/system/i18n_POTest.php | 220 +++++++++++++ 3 files changed, 576 insertions(+) create mode 100644 tests/unit/gulliver/system/PHPSQLParserTest.php create mode 100644 tests/unit/gulliver/system/dynaFormHandlerTest.php create mode 100644 tests/unit/gulliver/system/i18n_POTest.php diff --git a/tests/unit/gulliver/system/PHPSQLParserTest.php b/tests/unit/gulliver/system/PHPSQLParserTest.php new file mode 100644 index 000000000..0c00e80c0 --- /dev/null +++ b/tests/unit/gulliver/system/PHPSQLParserTest.php @@ -0,0 +1,64 @@ +object = new PHPSQLParser; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers PHPSQLParser::parse + * @todo Implement testParse(). + */ + public function testParse() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers PHPSQLParser::process_insert + * @todo Implement testProcess_insert(). + */ + public function testProcess_insert() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers PHPSQLParser::load_reserved_words + * @todo Implement testLoad_reserved_words(). + */ + public function testLoad_reserved_words() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/unit/gulliver/system/dynaFormHandlerTest.php b/tests/unit/gulliver/system/dynaFormHandlerTest.php new file mode 100644 index 000000000..73970634a --- /dev/null +++ b/tests/unit/gulliver/system/dynaFormHandlerTest.php @@ -0,0 +1,292 @@ +object = new dynaFormHandler; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers dynaFormHandler::load + * @todo Implement testLoad(). + */ + public function testLoad() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::reload + * @todo Implement testReload(). + */ + public function testReload() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::__cloneEmpty + * @todo Implement test__cloneEmpty(). + */ + public function test__cloneEmpty() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::toString + * @todo Implement testToString(). + */ + public function testToString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::getNode + * @todo Implement testGetNode(). + */ + public function testGetNode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::setNode + * @todo Implement testSetNode(). + */ + public function testSetNode() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::add + * @todo Implement testAdd(). + */ + public function testAdd() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::replace + * @todo Implement testReplace(). + */ + public function testReplace() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::save + * @todo Implement testSave(). + */ + public function testSave() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::fixXmlFile + * @todo Implement testFixXmlFile(). + */ + public function testFixXmlFile() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::setHeaderAttribute + * @todo Implement testSetHeaderAttribute(). + */ + public function testSetHeaderAttribute() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::modifyHeaderAttribute + * @todo Implement testModifyHeaderAttribute(). + */ + public function testModifyHeaderAttribute() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::updateAttribute + * @todo Implement testUpdateAttribute(). + */ + public function testUpdateAttribute() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::remove + * @todo Implement testRemove(). + */ + public function testRemove() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::nodeExists + * @todo Implement testNodeExists(). + */ + public function testNodeExists() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::moveUp + * @todo Implement testMoveUp(). + */ + public function testMoveUp() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::moveDown + * @todo Implement testMoveDown(). + */ + public function testMoveDown() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::getFields + * @todo Implement testGetFields(). + */ + public function testGetFields() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::getFieldNames + * @todo Implement testGetFieldNames(). + */ + public function testGetFieldNames() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::addChilds + * @todo Implement testAddChilds(). + */ + public function testAddChilds() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::addOrUpdateChild + * @todo Implement testAddOrUpdateChild(). + */ + public function testAddOrUpdateChild() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers dynaFormHandler::getArray + * @todo Implement testGetArray(). + */ + public function testGetArray() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +} diff --git a/tests/unit/gulliver/system/i18n_POTest.php b/tests/unit/gulliver/system/i18n_POTest.php new file mode 100644 index 000000000..894d154de --- /dev/null +++ b/tests/unit/gulliver/system/i18n_POTest.php @@ -0,0 +1,220 @@ +object = new i18n_PO; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + } + + /** + * @covers i18n_PO::buildInit + * @todo Implement testBuildInit(). + */ + public function testBuildInit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::readInit + * @todo Implement testReadInit(). + */ + public function testReadInit() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addHeader + * @todo Implement testAddHeader(). + */ + public function testAddHeader() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addTranslatorComment + * @todo Implement testAddTranslatorComment(). + */ + public function testAddTranslatorComment() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addExtractedComment + * @todo Implement testAddExtractedComment(). + */ + public function testAddExtractedComment() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addReference + * @todo Implement testAddReference(). + */ + public function testAddReference() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addFlag + * @todo Implement testAddFlag(). + */ + public function testAddFlag() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addPreviousUntranslatedString + * @todo Implement testAddPreviousUntranslatedString(). + */ + public function testAddPreviousUntranslatedString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::addTranslation + * @todo Implement testAddTranslation(). + */ + public function testAddTranslation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::_writeLine + * @todo Implement test_writeLine(). + */ + public function test_writeLine() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::_write + * @todo Implement test_write(). + */ + public function test_write() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::prepare + * @todo Implement testPrepare(). + */ + public function testPrepare() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::headerStroke + * @todo Implement testHeaderStroke(). + */ + public function testHeaderStroke() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::getHeaders + * @todo Implement testGetHeaders(). + */ + public function testGetHeaders() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::getTranslation + * @todo Implement testGetTranslation(). + */ + public function testGetTranslation() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @covers i18n_PO::__destruct + * @todo Implement test__destruct(). + */ + public function test__destruct() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } +}