public function testCanDefineACustomDefaultClassMapViaConstructor() { $classMap = new ClassMap(); // If our custom class map is used, sniff() will return Lint instead of CodeSniffer $classMap->register('sniff', '\\Gasp\\Task\\Lint'); $run = new Run($classMap); $this->assertInstanceOf('\\Gasp\\Task\\Lint', $run->sniff()); }