/** * @test */ public function getでdefault値が返る() { $default = 'default-value'; $collection = new Collection(['foo' => 'bar']); $actual = $collection->get('fizz', $default); $this->assertEquals($default, $actual); }
/** * @expectedException \Exception */ public function testGetterException() { $this->collection->get('id'); }