public function testFindMax()
 {
     $this->assertSame('3.1.x', Constraint::findMax(['3.1.x', '2.1.x', '1.1.x']));
     $this->assertSame('3.1.x', Constraint::findMax(['1.1.x', '3.1.x', '2.1.x']));
     $this->assertSame('3.1.x', Constraint::findMax(['2.1.x', '1.1.x', '3.1.x']));
     $this->assertSame('3.1.x', Constraint::findMax(['x.x.x', '1.1.x', '3.1.x']));
 }
 public function addDependency($type, $name, $constraint)
 {
     if (isset($this->config[$type][$name])) {
         $this->config[$type][$name] = Constraint::merge($this->config[$type][$name], $constraint);
     } else {
         $this->config[$type][$name] = $constraint;
     }
 }