/** * Test the Fluent magic methods can be used to set attributes. * * @test */ public function testMagicMethodsCanBeUsedToSetAttributes() { $fluent = new Fluent(); $fluent->name = 'Taylor'; $fluent->developer(); $fluent->age(25); $this->assertEquals('Taylor', $fluent->name); $this->assertTrue($fluent->developer); $this->assertEquals(25, $fluent->age); $this->assertInstanceOf('Robbo\\SchemaBuilder\\Fluent', $fluent->programmer()); }