aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-10-29 22:24:14 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-10-29 22:24:14 +0100
commit97c5e8747da33bc8e097c1b2f0f752311507562d (patch)
tree89cde7603e9252cd72e7dd0798c31152f7c53df5
parenteae8d68407f9e9184cd945b99ff147a8b63c112b (diff)
downloadMail-97c5e8747da33bc8e097c1b2f0f752311507562d.zip
Mail-97c5e8747da33bc8e097c1b2f0f752311507562d.tar.gz
Mail-97c5e8747da33bc8e097c1b2f0f752311507562d.tar.bz2
Test: Specify file type with `hoa://Test/Vfs`.
-rw-r--r--Test/Unit/Content/Attachment.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/Test/Unit/Content/Attachment.php b/Test/Unit/Content/Attachment.php
index d267114..d52628a 100644
--- a/Test/Unit/Content/Attachment.php
+++ b/Test/Unit/Content/Attachment.php
@@ -54,7 +54,7 @@ class Attachment extends Test\Unit\Suite
{
$this
->given(
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/Foo.text')),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/Foo.text?type=file')),
$stream->writeAll('foobar'),
$name = 'Hello.txt'
)
@@ -75,7 +75,7 @@ class Attachment extends Test\Unit\Suite
$this
->given(
$filename = 'Foo.txt',
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename)),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename . '?type=file')),
$stream->writeAll('<strong>foobar</strong>')
)
->when($result = new SUT($stream))
@@ -91,7 +91,7 @@ class Attachment extends Test\Unit\Suite
$this
->given(
$filename = 'Foo.txt',
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename)),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename . '?type=file')),
$stream->writeAll('<strong>foobar</strong>')
)
->when($result = new SUT($stream))
@@ -105,7 +105,7 @@ class Attachment extends Test\Unit\Suite
$this
->given(
$filename = 'Foo.txt',
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename)),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename . '?type=file')),
$stream->writeAll('<strong>foobar</strong>'),
$name = 'Bar.txt'
)
@@ -120,7 +120,7 @@ class Attachment extends Test\Unit\Suite
$this
->given(
$filename = 'Foo.txt',
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename))
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename . '?type=file'))
)
->when($result = new SUT($stream, 'B"a"r.txt'))
->then
@@ -133,7 +133,7 @@ class Attachment extends Test\Unit\Suite
$this
->given(
$filename = 'Foo.txt',
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename)),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/' . $filename . '?type=file')),
$stream->writeAll('<strong>foobar</strong>'),
$name = 'Bar.txt',
$mimeType = 'text/x-test-plain'
@@ -150,7 +150,7 @@ class Attachment extends Test\Unit\Suite
{
$this
->given(
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/Foo.hoa-test')),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/Foo.hoa-test?type=file')),
$stream->writeAll('foobar')
)
->when($result = new SUT($stream))
@@ -164,7 +164,7 @@ class Attachment extends Test\Unit\Suite
$this
->given(
$text = 'foobar',
- $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/Foo.text')),
+ $stream = new File\ReadWrite(resolve('hoa://Test/Vfs/Foo.text?type=file')),
$stream->writeAll($text)
)
->when($result = new SUT($stream))