Documentation

ParserTest extends PHPUnit_Framework_TestCase
in package

Table of Contents

testFileNotExist()  : mixed
Testing the Event of parsing a non existing CSV file
testInvalidCsvFile()  : mixed
Test to verify the event of setting an invalid file type
testParseCount()  : void
Testing the Method to Count the total row Object parsed from the file
testParser()  : void
Test to Verify the CSV Parser
testSetEmptyFileName()  : void
Testing the Event of Setting empty filename

Methods

testFileNotExist()

Testing the Event of parsing a non existing CSV file

public testFileNotExist() : mixed
Tags
expectedException

InvalidArgumentException

expectedExceptionMessage

File employee.csv does not exist.

Return values
mixed

testInvalidCsvFile()

Test to verify the event of setting an invalid file type

public testInvalidCsvFile() : mixed
Tags
expectedException

InvalidArgumentException

expectedExceptionMessage

File is not a valid csv file.

Return values
mixed

testParseCount()

Testing the Method to Count the total row Object parsed from the file

public testParseCount() : void
Return values
void

testParser()

Test to Verify the CSV Parser

public testParser() : void
Return values
void

testSetEmptyFileName()

Testing the Event of Setting empty filename

public testSetEmptyFileName() : void
Tags
expectedException

InvalidArgumentException

expectedExceptionMessage

Filename is not a valid string.

Return values
void

Search results