/** * Test the Fluent::get() method. * * @test */ public function testGetMethodReturnsAttribute() { $fluent = new Fluent(array('name' => 'Taylor')); $this->assertEquals('Taylor', $fluent->get('name')); $this->assertEquals('Default', $fluent->get('foo', 'Default')); $this->assertEquals('Taylor', $fluent->name); $this->assertNull($fluent->foo); }