diff options
Diffstat (limited to 'test/FactoryTest.php')
-rw-r--r-- | test/FactoryTest.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/FactoryTest.php b/test/FactoryTest.php index 7a85f92..0c11957 100644 --- a/test/FactoryTest.php +++ b/test/FactoryTest.php @@ -2,7 +2,6 @@ namespace League\Csv\test; -use DateTime; use League\Csv\Reader; use PHPUnit_Framework_TestCase; use SplFileInfo; @@ -10,8 +9,6 @@ use SplFileObject; use SplTempFileObject; use StdClass; -date_default_timezone_set('UTC'); - /** * @group factory */ @@ -40,7 +37,6 @@ class FactoryTest extends PHPUnit_Framework_TestCase /** * @expectedException InvalidArgumentException - * @expectedExceptionMessage an `SplTempFileObject` object does not contain a valid path */ public function testCreateFromPathWithSplTempFileObject() { @@ -55,24 +51,6 @@ class FactoryTest extends PHPUnit_Framework_TestCase $this->assertInstanceof('League\Csv\Reader', $reader); } - /** - * @expectedException PHPUnit_Framework_Error - */ - public function testCreateFromStringThrowExceptionWithBadNewline() - { - $expected = "john,doe,john.doe@example.com".PHP_EOL - ."jane,doe,jane.doe@example.com".PHP_EOL; - Reader::createFromString($expected, new \StdClass); - } - - /** - * @expectedException PHPUnit_Framework_Error - */ - public function testCreateFromStringFromNotStringableObject() - { - Reader::createFromString(new DateTime()); - } - public function testCreateFromFileObject() { $reader = Reader::createFromFileObject(new SplTempFileObject()); @@ -88,12 +66,4 @@ class FactoryTest extends PHPUnit_Framework_TestCase $this->assertInstanceof('League\Csv\Reader', $reader); $this->assertInstanceof('SplFileObject', $reader->getIterator()); } - - /** - * @expectedException PHPUnit_Framework_Error - */ - public function testCreateFromFileObjectFailed() - { - Reader::createFromFileObject(new StdClass()); - } } |