From 88af5ccbbe423e79bf940b24322e314c0798f2af Mon Sep 17 00:00:00 2001 From: recca0120 Date: Thu, 15 Feb 2018 12:23:07 +0800 Subject: [PATCH] add test --- tests/ChunkFileFactoryTest.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/ChunkFileFactoryTest.php diff --git a/tests/ChunkFileFactoryTest.php b/tests/ChunkFileFactoryTest.php new file mode 100644 index 0000000..6cf4c7e --- /dev/null +++ b/tests/ChunkFileFactoryTest.php @@ -0,0 +1,27 @@ +shouldReceive('mimeType')->once()->andReturn('text/plain'); + + $this->assertInstanceOf('Recca0120\Upload\ChunkFile', $chunkFileFactory->create('foo.php', 'foo.chunksPath', 'foo.storagePath', 'foo.token')); + } +}