/** * Test driver name with AI mention */ public function testNameWithAiMention() { // Init new Driver $driver = new Driver(); // Set name and whether its human or not $driver->setName('mauserrifle'); $driver->setHuman(true); // Validate friendly name $this->assertSame('mauserrifle', $driver->getNameWithAiMention()); // Is not human $driver->setHuman(false); // Validate friendly name $this->assertSame('mauserrifle (AI)', $driver->getNameWithAiMention()); }