ColorThief\Image\Adapter\Test\BaseImageAdapterTest::testLoadInvalidArgument PHP Method

testLoadInvalidArgument() public method

    public function testLoadInvalidArgument()
    {
        $adapter = $this->getAdapterInstance();
        /** @noinspection PhpParamsInspection */
        $adapter->load("test");
    }

Usage Example

 /**
  * @expectedException InvalidArgumentException
  * @expectedExceptionMessage Passed variable is not an instance of Imagick
  */
 public function testLoadInvalidArgument()
 {
     // We want to check also the specific exception message.
     parent::testLoadInvalidArgument();
 }