We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3dcd53 commit f20f0beCopy full SHA for f20f0be
src/Plugin/ExceptTest.php
@@ -8,6 +8,7 @@
8
use Mvc5\App;
9
use Mvc5\Plugin\Call;
10
use Mvc5\Plugin\Expect;
11
+use Mvc5\Plugin\Plugin;
12
use Mvc5\Plugin\Value;
13
use Mvc5\Test\Test\TestCase;
14
@@ -21,8 +22,19 @@ function test()
21
22
{
23
$expect = new Expect('foo');
24
- $this->assertEquals('foo', $expect->plugin());
25
- $this->assertNull($expect->exception());
+ $this->assertEquals(new Value('foo'), $expect->plugin());
26
+ $this->assertEquals(new Value(null), $expect->exception());
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ function test_resolvable()
33
+ {
34
+ $expect = new Expect(new Plugin('foo'), new Plugin('bar'));
35
36
+ $this->assertEquals(new Plugin('foo'), $expect->plugin());
37
+ $this->assertEquals(new Plugin('bar'), $expect->exception());
38
}
39
40
/**
0 commit comments