Login   Register  
PHP Classes
elePHPant
Icontem

File: tests/src/SplitCSV/BaseTest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sergii Pryz  >  PHP Split CSV  >  tests/src/SplitCSV/BaseTest.php  >  Download  
File: tests/src/SplitCSV/BaseTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: PHP Split CSV
Split CSV files input multiple parts set by rules
Author: By
Last change:
Date: 2013-12-29 09:31
Size: 742 bytes
 

Contents

Class file image Download
<?php
/**
 * Base SplitCSV UnitTest
 * 
 * @link        https://github.com/picamator/SplitCSV
 * @license     http://opensource.org/licenses/BSD-3-Clause New BSD License
 */

namespace SplitCSV;

class 
BaseTest extends \PHPUnit_Framework_TestCase 
{
    
/**
     * Path to the data folder
     * 
     * @var string 
     */
    
protected $data_path './data/';
    
    
/**
     * Template methods runs once for each test method
     * of the test case class 
     */
    
protected function setUp()
    {
        
    }
    
    
/**
     * Gets full path to data
     * 
     * @param string $path
     * @retutn string
     */
    
protected function getDataPath($path)
    {        
        return 
realpath($this->data_path.$path);
    }
}