/** * @file * @brief concerne Acc_Ledger_History_SaleTest.class */ class Acc_Ledger_History_SaleTest extends TestCase { /** * @var */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { include 'global.php'; global $g_connection; $this->object=new Acc_Ledger_History_Sale($g_connection,[2],92,131,'L'); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { } function testGet_row() { $this->object->get_row(); $this->assertSame(count($this->object->get_data()),4); } }