@@ 73-81 (lines=9) @@ | ||
70 | static::assertSame($node, $item); |
|
71 | } |
|
72 | ||
73 | public function testFirstWithNoCallbackWillReturnTheFirstEntry() |
|
74 | { |
|
75 | $first = m::mock(NodeInterface::class); |
|
76 | $second = m::mock(NodeInterface::class); |
|
77 | ||
78 | $collection = new NodeCollection([$first, $second]); |
|
79 | ||
80 | static::assertSame($first, $collection->first()); |
|
81 | } |
|
82 | ||
83 | public function testLastWithNoCallbackWillReturnTheFirstEntry() |
|
84 | { |
|
@@ 83-91 (lines=9) @@ | ||
80 | static::assertSame($first, $collection->first()); |
|
81 | } |
|
82 | ||
83 | public function testLastWithNoCallbackWillReturnTheFirstEntry() |
|
84 | { |
|
85 | $first = m::mock(NodeInterface::class); |
|
86 | $second = m::mock(NodeInterface::class); |
|
87 | ||
88 | $collection = new NodeCollection([$first, $second]); |
|
89 | ||
90 | static::assertSame($second, $collection->last()); |
|
91 | } |
|
92 | ||
93 | public function testFirstWithCallbackWillReturnTheFirstThatMatches() |
|
94 | { |