From c2f67542c64c9c8c5798601031f1c8db713d5efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Fri, 20 May 2011 17:54:40 +0200 Subject: [PATCH 1/2] Add JDocumentTest. --- tests/suite/joomla/document/JDocumentTest.php | 805 ++++++++++++++++++ 1 file changed, 805 insertions(+) create mode 100644 tests/suite/joomla/document/JDocumentTest.php diff --git a/tests/suite/joomla/document/JDocumentTest.php b/tests/suite/joomla/document/JDocumentTest.php new file mode 100644 index 0000000000000..2998e0543de2c --- /dev/null +++ b/tests/suite/joomla/document/JDocumentTest.php @@ -0,0 +1,805 @@ +object = new JDocument; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + * + * @access protected + */ + protected function tearDown() + { + } + + public function constructData() + { + return array( + array( + array('lineend' => "\12"), + array( + 'lineend' => "\12", + 'charset' => 'utf-8', + 'language' => 'en-gb', + 'direction' => 'ltr', + 'tab' => "\11", + 'link' => '', + 'base' => '' + ) + ), + array( + array('charset' => "euc-jp"), + array( + 'lineend' => "\12", + 'charset' => 'euc-jp', + 'language' => 'en-gb', + 'direction' => 'ltr', + 'tab' => "\11", + 'link' => '', + 'base' => '' + ) + ), + array( + array('language' => "de-de", 'direction' => 'rtl', + 'tab' => 'Crazy Tab', 'link' => 'http://joomla.org', + 'base' => 'http://base.joomla.org/dir'), + array( + 'lineend' => "\12", + 'charset' => 'utf-8', + 'language' => 'de-de', + 'direction' => 'rtl', + 'tab' => "Crazy Tab", + 'link' => 'http://joomla.org', + 'base' => 'http://base.joomla.org/dir' + ) + ) + + + + ); + } + + /** + * @dataProvider constructData + */ + public function testConstruct($options, $expects) + { + $this->object = new JDocument($options); + + $this->assertThat( + $this->object->_getLineEnd(), + $this->equalTo($expects['lineend']) + ); + + $this->assertThat( + $this->object->getCharset(), + $this->equalTo($expects['charset']) + ); + + $this->assertThat( + $this->object->getLanguage(), + $this->equalTo($expects['language']) + ); + + $this->assertThat( + $this->object->getDirection(), + $this->equalTo($expects['direction']) + ); + + $this->assertThat( + $this->object->_getTab(), + $this->equalTo($expects['tab']) + ); + + $this->assertThat( + $this->object->getLink(), + $this->equalTo($expects['link']) + ); + + $this->assertThat( + $this->object->getBase(), + $this->equalTo($expects['base']) + ); + + } + + public function testGetInstance() { + $this->object = JDocument::getInstance(); + + $this->assertThat( + $this->object, + $this->isInstanceOf('JDocumentHtml') + ); + + $this->object = JDocument::getInstance('custom'); + + $this->assertThat( + $this->object, + $this->isInstanceOf('JDocumentRaw') + ); + + $this->assertThat( + $this->object->getType(), + $this->equalTo('custom') + ); + + + } + + public function testSetType() + { + $this->object = new JDocument; + $this->object->setType('raw'); + $this->assertThat( + $this->object->_type, + $this->equalTo('raw'), + 'JDocument->setType failed' + ); + } + + public function testGetType() + { + $this->object = new JDocument; + $this->object->_type = 'raw'; + $this->assertThat( + $this->object->getType(), + $this->equalTo('raw'), + 'JDocument->getType failed' + ); + } + + /** + * This is an empty test for code coverage reasons (the method is empty) + */ + public function testGetHeadData() + { + $this->object = new JDocument; + $this->object->getHeadData(); + } + + /** + * This is an empty test for code coverage reasons (the method is empty) + */ + public function testSetHeadData() + { + $this->object = new JDocument; + $this->object->setHeadData(array()); + } + + /** + * Test getBuffer + */ + public function testGetBuffer() + { + $this->object = new JDocument; + $this->object->setBuffer('This is the content of my document'); + + $this->assertThat( + $this->object->getBuffer(), + $this->equalTo('This is the content of my document'), + 'getBuffer did not properly return document contents' + ); + + } + + /** + * Test setBuffer + */ + public function testSetBuffer() + { + $this->object = new JDocument; + $this->object->setBuffer('This is the content of my document'); + + $this->assertThat( + $this->object->getBuffer(), + $this->equalTo('This is the content of my document'), + 'setBuffer did not properly set document contents' + ); + } + + public function testGetMetaData() + { + $this->object = new JDocument; + $this->assertThat( + $this->object->getMetaData('generator'), + $this->equalTo('Joomla! 1.6 - Open Source Content Management'), + 'JDocument::getMetaData did not return generator properly' + ); + + $this->object->setMetaData('generator', 'My Custom Generator'); + + $this->assertThat( + $this->object->getMetaData('generator'), + $this->equalTo('My Custom Generator'), + 'JDocument::getMetaData did not return generator properly or setMetaData with generator did not work' + ); + + $this->assertThat( + $this->object->getMetaData('description'), + $this->equalTo(''), + 'JDocument::getMetaData did not return description properly' + ); + + $this->object->setMetaData('description', 'My Description'); + + $this->assertThat( + $this->object->getMetaData('description'), + $this->equalTo('My Description'), + 'JDocument::getMetaData did not return description properly or setMetaData with description didn not set properly' + ); + + $this->object->setMetaData('myMetaTag', 'myMetaContent'); + + $this->assertThat( + $this->object->getMetaData('myMetaTag'), + $this->equalTo('myMetaContent'), + 'JDocument::getMetaData or setMetaData failed' + ); + + $this->assertThat( + $this->object->getMetaData('myMetaTag', true), + $this->logicalNot($this->equalTo('myMetaContent')), + 'JDocument::getMetaData or setMetaData returned http_equiv when it should not have' + ); + + $this->object->setMetaData('myOtherMetaTag', 'myOtherMetaContent', true); + + $this->assertThat( + $this->object->getMetaData('myOtherMetaTag', true), + $this->equalTo('myOtherMetaContent'), + 'JDocument::getMetaData or setMetaData failed' + ); + + $this->assertThat( + $this->object->getMetaData('myOtherMetaTag'), + $this->logicalNot($this->equalTo('myOtherMetaContent')), + 'JDocument::getMetaData or setMetaData returned http_equiv when it should not have' + ); + + + } + + public function testAddScript() + { + $this->object = new JDocument; + + $this->object->addScript('http://www.joomla.org'); + $this->assertThat( + $this->object->_scripts['http://www.joomla.org']['mime'], + $this->equalTo('text/javascript'), + 'JDocument->addScript failed' + ); + $this->assertThat( + $this->object->_scripts['http://www.joomla.org']['defer'], + $this->equalTo(false), + 'JDocument->addScript failed' + ); + $this->assertThat( + $this->object->_scripts['http://www.joomla.org']['async'], + $this->equalTo(FALSE), + 'JDocument->addScript failed' + ); + + $this->object->addScript('http://test.joomla.org', 'My Type', true, true); + $this->assertThat( + $this->object->_scripts['http://test.joomla.org']['mime'], + $this->equalTo('My Type'), + 'JDocument->addScript failed' + ); + $this->assertThat( + $this->object->_scripts['http://test.joomla.org']['defer'], + $this->equalTo(TRUE), + 'JDocument->addScript failed' + ); + $this->assertThat( + $this->object->_scripts['http://test.joomla.org']['async'], + $this->equalTo(TRUE), + 'JDocument->addScript failed' + ); + + } + + public function testAddScriptDeclaration() + { + $this->object = new JDocument; + + $this->object->addScriptDeclaration('My Script'); + $this->assertThat( + $this->object->_script['text/javascript'], + $this->equalTo('My Script'), + 'JDocument->addScriptDeclaration failed' + ); + + $this->object->addScriptDeclaration('My Script', 'my/type'); + $this->assertThat( + $this->object->_script['my/type'], + $this->equalTo('My Script'), + 'JDocument->addScriptDeclaration failed' + ); + + $this->object->addScriptDeclaration('My Second Script'); + $this->assertThat( + $this->object->_script['text/javascript'], + $this->equalTo('My Script'.chr(13).'My Second Script'), + 'JDocument->addScriptDeclaration failed' + ); + + } + + public function testAddStyleSheet() + { + $this->object = new JDocument; + + $this->object->addStyleSheet( + 'http://www.joomla.org', 'text/style', 'screen', array('attrib1' => 'value1') + ); + + $this->assertThat( + $this->object->_styleSheets['http://www.joomla.org']['mime'], + $this->equalTo('text/style') + ); + + $this->assertThat( + $this->object->_styleSheets['http://www.joomla.org']['media'], + $this->equalTo('screen') + ); + + $this->assertThat( + $this->object->_styleSheets['http://www.joomla.org']['attribs'], + $this->equalTo(array('attrib1' => 'value1')) + ); + + } + + public function testAddStyleDeclaration() + { + $this->object = new JDocument; + + $this->object->addStyleDeclaration('My Style'); + $this->assertThat( + $this->object->_style['text/css'], + $this->equalTo('My Style'), + 'JDocument->addStyleDeclaration failed' + ); + + $this->object->addStyleDeclaration('My Style', 'my/type'); + $this->assertThat( + $this->object->_style['my/type'], + $this->equalTo('My Style'), + 'JDocument->addStyleDeclaration failed' + ); + + $this->object->addStyleDeclaration('My Second Style'); + $this->assertThat( + $this->object->_style['text/css'], + $this->equalTo('My Style'.chr(13).'My Second Style'), + 'JDocument->addStyleDeclaration failed' + ); + } + + public function testSetCharset() + { + $this->object = new JDocument; + + $this->object->setCharset('My Character Set'); + + $this->assertThat( + $this->object->_charset, + $this->equalTo('My Character Set') + ); + } + + public function testGetCharset() + { + $this->object = new JDocument; + + $this->object->_charset = 'My Character Set'; + + $this->assertThat( + $this->object->getCharset(), + $this->equalTo('My Character Set') + ); + } + + public function testSetLanguage() + { + $this->object = new JDocument; + + $this->object->setLanguage('My Character Set'); + + $this->assertThat( + $this->object->language, + $this->equalTo('my character set') + ); + } + + public function testGetLanguage() + { + $this->object = new JDocument; + + $this->object->language = 'de-de'; + + $this->assertThat( + $this->object->getLanguage(), + $this->equalTo('de-de') + ); + } + + public function testSetDirection() + { + $this->object = new JDocument; + + $this->object->setDirection('rtl'); + + $this->assertThat( + $this->object->direction, + $this->equalTo('rtl') + ); + } + + public function testGetDirection() + { + $this->object = new JDocument; + + $this->object->direction = 'rtl'; + + $this->assertThat( + $this->object->getDirection(), + $this->equalTo('rtl') + ); + } + + public function testSetTitle() + { + $this->object = new JDocument; + + $this->object->setTitle('My Title'); + + $this->assertThat( + $this->object->title, + $this->equalTo('My Title') + ); + } + + public function testGetTitle() + { + $this->object = new JDocument; + + $this->object->title = 'My Title'; + + $this->assertThat( + $this->object->getTitle(), + $this->equalTo('My Title') + ); + } + + public function testSetBase() + { + $this->object = new JDocument; + + $this->object->setBase('http://www.example.com/base'); + + $this->assertThat( + $this->object->base, + $this->equalTo('http://www.example.com/base') + ); + } + + public function testGetBase() + { + $this->object = new JDocument; + + $this->object->base = 'http://www.example.com/base'; + + $this->assertThat( + $this->object->getBase(), + $this->equalTo('http://www.example.com/base') + ); + } + + public function testSetDescription() + { + $this->object = new JDocument; + + $this->object->setDescription('Joomla Rocks'); + + $this->assertThat( + $this->object->description, + $this->equalTo('Joomla Rocks') + ); + } + + public function testGetDescription() + { + $this->object = new JDocument; + + $this->object->description = 'Joomla Rocks'; + + $this->assertThat( + $this->object->getDescription(), + $this->equalTo('Joomla Rocks') + ); + } + + public function testSetLink() + { + $this->object = new JDocument; + + $this->object->setLink('My Link String'); + + $this->assertThat( + $this->object->link, + $this->equalTo('My Link String') + ); + } + + public function testGetLink() + { + $this->object = new JDocument; + + $this->object->link = 'My Link String'; + + $this->assertThat( + $this->object->getLink(), + $this->equalTo('My Link String') + ); + } + + public function testSetGenerator() + { + $this->object = new JDocument; + + $this->object->setGenerator('Joomla Content Management'); + + $this->assertThat( + $this->object->_generator, + $this->equalTo('Joomla Content Management') + ); + } + + public function testGetGenerator() + { + $this->object = new JDocument; + + $this->object->_generator = 'Joomla Content Management'; + + $this->assertThat( + $this->object->getGenerator(), + $this->equalTo('Joomla Content Management') + ); + } + + public function testSetModifiedDate() + { + $this->object = new JDocument; + + $this->object->setModifiedDate('2010-06-22'); + + $this->assertThat( + $this->object->_mdate, + $this->equalTo('2010-06-22') + ); + } + + public function testGetModifiedDate() + { + $this->object = new JDocument; + + $this->object->_mdate = '2010-06-22'; + + $this->assertThat( + $this->object->getModifiedDate(), + $this->equalTo('2010-06-22') + ); + } + + public function testSetMimeEncoding() + { + $this->object = new JDocument; + + $this->object->setMimeEncoding('text/xls'); + + $this->assertThat( + $this->object->_mime, + $this->equalTo('text/xls') + ); + } + + /** + * @group Document + * @covers JDocument::getMimeEncoding + */ + public function testGetMimeEncoding() + { + $document = new JDocument(); + $document->setMimeEncoding('image'); + $this->assertEquals('image',$document->getMimeEncoding(),'getMimeEncoding should be image'); + $document->setMimeEncoding('zip'); + $this->assertEquals('zip',$document->getMimeEncoding(),'getMimeEncoding should be zip'); + } + + public function testSetLineEnd() + { + $this->object = new JDocument; + + $this->object->setLineEnd('win'); + + $this->assertThat( + $this->object->_lineEnd, + $this->equalTo("\15\12") + ); + + $this->object->setLineEnd('unix'); + + $this->assertThat( + $this->object->_lineEnd, + $this->equalTo("\12") + ); + + $this->object->setLineEnd('mac'); + + $this->assertThat( + $this->object->_lineEnd, + $this->equalTo("\15") + ); + + $this->object->setLineEnd('
'); + + $this->assertThat( + $this->object->_lineEnd, + $this->equalTo("
") + ); + + } + + public function test_getLineEnd() + { + $this->object = new JDocument; + + $this->object->_lineEnd = "\12"; + + $this->assertThat( + $this->object->_getLineEnd(), + $this->equalTo("\12") + ); + } + + public function testSetTab() + { + $this->object = new JDocument; + + $this->object->setTab('Crazy Indent'); + + $this->assertThat( + $this->object->_tab, + $this->equalTo('Crazy Indent') + ); + + } + + public function test_getTab() + { + $this->object = new JDocument; + + $this->object->_tab = 'Crazy Indent'; + + $this->assertThat( + $this->object->_getTab(), + $this->equalTo('Crazy Indent') + ); + } + + public function testLoadRenderer() + { + $this->object = new JDocument; + $this->object->setType('html'); + $renderer = $this->object->loadRenderer('head'); + $this->assertThat( + $renderer, + $this->isInstanceOf('JDocumentRendererHead') + ); + } + + public function testParse() + { + $this->object = new JDocument; + + $this->assertThat( + $this->object->parse(), + $this->equalTo(null) + ); + } + + public function testRender() + { + $this->object = new JDocument; + + $this->object->render(); + $headers = JResponse::getHeaders(); + + $lastMod = false; + $contentType = false; + + foreach($headers AS $header) + { + if ($header['name'] == 'Last-Modified') { + $lastMod = $header; + } + + if ($header['name'] == 'Content-Type') { + $contentType = $header; + } + } + + $this->assertThat( + $lastMod, + $this->equalTo(false) + ); + + $this->assertThat( + $contentType['value'], + $this->equalTo('; charset=utf-8') + ); + + $this->object->setModifiedDate('My date'); + $this->object->setMimeEncoding('MyMimeType'); + $this->object->setCharset('MyCharset'); + + $this->object->render(); + + $headers = JResponse::getHeaders(); + + $lastMod = false; + $contentType = false; + + foreach($headers AS $header) { + if ($header['name'] == 'Last-Modified') { + $lastMod = $header; + } + + if ($header['name'] == 'Content-Type') { + $contentType = $header; + } + } + + $this->assertThat( + $lastMod['value'], + $this->equalTo('My date') + ); + + $this->assertThat( + $contentType['value'], + $this->equalTo('mymimetype; charset=MyCharset') + ); + + } +} From bd2d0355fe68b13532fda50732255828fab1be5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rouven=20We=C3=9Fling?= Date: Fri, 20 May 2011 18:01:21 +0200 Subject: [PATCH 2/2] Add JBrowserTest and JResponseTest. --- .../suite/joomla/environment/JBrowserTest.php | 272 ++++++++++++++++++ .../joomla/environment/JResponseTest.php | 163 +++++++++++ 2 files changed, 435 insertions(+) create mode 100644 tests/suite/joomla/environment/JBrowserTest.php create mode 100644 tests/suite/joomla/environment/JResponseTest.php diff --git a/tests/suite/joomla/environment/JBrowserTest.php b/tests/suite/joomla/environment/JBrowserTest.php new file mode 100644 index 0000000000000..a79f049d8360b --- /dev/null +++ b/tests/suite/joomla/environment/JBrowserTest.php @@ -0,0 +1,272 @@ +object = new JBrowser; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() + { + + } + + /** + * @todo Implement testGetInstance(). + */ + public function testGetInstance() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testMatch(). + */ + public function testMatch() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetPlatform(). + */ + public function testGetPlatform() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetBrowser(). + */ + public function testSetBrowser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetBrowser(). + */ + public function testGetBrowser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetMajor(). + */ + public function testGetMajor() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetMinor(). + */ + public function testGetMinor() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetVersion(). + */ + public function testGetVersion() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetAgentString(). + */ + public function testGetAgentString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetHTTPProtocol(). + */ + public function testGetHTTPProtocol() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetQuirk(). + */ + public function testSetQuirk() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHasQuirk(). + */ + public function testHasQuirk() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetQuirk(). + */ + public function testGetQuirk() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetFeature(). + */ + public function testSetFeature() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHasFeature(). + */ + public function testHasFeature() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetFeature(). + */ + public function testGetFeature() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsViewable(). + */ + public function testIsViewable() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsBrowser(). + */ + public function testIsBrowser() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsRobot(). + */ + public function testIsRobot() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsMobile(). + */ + public function testIsMobile() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + public function testIsSSLConnection() + { + unset($_SERVER['HTTPS']); + + $this->assertThat( + $this->object->isSSLConnection(), + $this->equalTo(false) + ); + + $_SERVER['HTTPS'] = 'on'; + + $this->assertThat( + $this->object->isSSLConnection(), + $this->equalTo(true) + ); + } + +} diff --git a/tests/suite/joomla/environment/JResponseTest.php b/tests/suite/joomla/environment/JResponseTest.php new file mode 100644 index 0000000000000..137613f18193c --- /dev/null +++ b/tests/suite/joomla/environment/JResponseTest.php @@ -0,0 +1,163 @@ +assertThat( + JResponse::allowCache(), + $this->equalTo(FALSE) + ); + + JResponse::allowCache(TRUE); + $this->assertThat( + JResponse::allowCache(), + $this->equalTo(TRUE) + ); + + $this->assertThat( + JResponse::allowCache(FALSE), + $this->equalTo(FALSE) + ); + } + + public function testSetHeader() + { + JResponse::clearHeaders(); + JResponse::setHeader('somename', 'somevalue'); + + $this->assertThat( + count(JResponse::getHeaders()), + $this->equalTo(1) + ); + + JResponse::clearHeaders(); + } + + public function testGetHeaders() + { + JResponse::clearHeaders(); + JResponse::setHeader('somename', 'somevalue'); + $headers = JResponse::getHeaders(); + + $this->assertThat( + $headers[0]['name'], + $this->equalTo('somename') + ); + + $this->assertThat( + $headers[0]['value'], + $this->equalTo('somevalue') + ); + + JResponse::clearHeaders(); + } + + public function testClearHeaders() + { + JResponse::setHeader('somename', 'somevalue'); + JResponse::clearHeaders(); + + $this->assertThat( + count(JResponse::getHeaders()), + $this->equalTo(0) + ); + } + + /** + * @todo Implement testSendHeaders(). + */ + public function testSendHeaders() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetBody(). + */ + public function testSetBody() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testPrependBody(). + */ + public function testPrependBody() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAppendBody(). + */ + public function testAppendBody() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetBody(). + */ + public function testGetBody() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testToString(). + */ + public function testToString() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} +