This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic PHPUnit test skeleton for Convertor
- Loading branch information
Showing
6 changed files
with
196 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
<?php | ||
|
||
namespace Test\FlexiPeeHP\Bricks; | ||
|
||
use \FlexiPeeHP\Bricks\Convertor; | ||
|
||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2019-02-21 at 12:27:19. | ||
*/ | ||
class ConvertorTest extends \Test\Ease\SandTest | ||
{ | ||
/** | ||
* @var Convertor | ||
*/ | ||
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 Convertor(); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::setSource | ||
*/ | ||
public function testSetSource() | ||
{ | ||
$sourcer = new \FlexiPeeHP\FakturaVydana(); | ||
$this->object->setSource($sourcer); | ||
$this->assertEquals($sourcer, $this->object->getInput()); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::setDestination | ||
*/ | ||
public function testSetDestination() | ||
{ | ||
$dester = new \FlexiPeeHP\FakturaPrijata(); | ||
$this->object->setDestination($dester); | ||
$this->assertEquals($dester, $this->object->getOutput()); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::conversion | ||
* @expectedException \Ease\Exception | ||
*/ | ||
public function testConversion() | ||
{ | ||
$this->object->conversion(); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::baseClassName | ||
*/ | ||
public function testBaseClassName() | ||
{ | ||
$this->assertEquals('FakturaVydana', | ||
$this->object->baseClassName(new \FlexiPeeHP\FakturaVydana())); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::prepareRules | ||
* @todo Implement testPrepareRules(). | ||
*/ | ||
public function testPrepareRules() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::convertDocument | ||
* @todo Implement testConvertDocument(). | ||
*/ | ||
public function testConvertDocument() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::convertSubitems | ||
* @todo Implement testConvertSubitems(). | ||
*/ | ||
public function testConvertSubitems() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::convertItems | ||
* @todo Implement testConvertItems(). | ||
*/ | ||
public function testConvertItems() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::removeRoColumns | ||
* @todo Implement testRemoveRoColumns(). | ||
*/ | ||
public function testRemoveRoColumns() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::commonItems | ||
* @todo Implement testCommonItems(). | ||
*/ | ||
public function testCommonItems() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::getInput | ||
*/ | ||
public function testGetInput() | ||
{ | ||
$test = new \FlexiPeeHP\Adresar(); | ||
$this->object->setSource($test); | ||
$this->assertEquals($test, $this->object->getInput()); | ||
} | ||
|
||
/** | ||
* @covers FlexiPeeHP\Bricks\Convertor::getOutput | ||
*/ | ||
public function testGetOutput() | ||
{ | ||
$test = new \FlexiPeeHP\Adresar(); | ||
$this->object->setDestination($test); | ||
$this->assertEquals($test, $this->object->getOutput()); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.