/** * Test: Set name * * @covers \Phue\Command\CreateSchedule::name */ public function testName() { $x = new CreateSchedule(); $command = $x->name('Dummy!'); // Ensure property is set properly $this->assertAttributeContains('Dummy!', 'attributes', $command); // Ensure self object is returned $this->assertEquals($command, $command->name('Dummy!')); }