/**
  * @expectedException \Intervention\Image\Exception\InvalidArgumentException
  */
 public function testMaxFail()
 {
     $arg = new Argument($this->getMockedCommand(array(25)));
     $arg->max(10);
 }
Exemple #2
0
 public function testValueDefault()
 {
     $arg = new Argument($this->getMockedCommand());
     $value = $arg->value('foo');
     $this->assertEquals('foo', $value);
     $arg = new Argument($this->getMockedCommand(array(null)));
     $value = $arg->value('foo');
     $this->assertEquals('foo', $value);
 }