imageUrl() public static method

Set randomize to false to remove the random GET parameter at the end of the url.
public static imageUrl ( $width = 640, $height = 480, $category = null, $randomize = true, $word = null, $gray = false )
コード例 #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testUrlWithDimensionsAndBadCategory()
 {
     Image::imageUrl(800, 400, 'bullhonky');
 }
コード例 #2
0
ファイル: ImageTest.php プロジェクト: ecmattos/codemat
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testUrlWithDimensionsAndBadMaterialUnit()
 {
     Image::imageUrl(800, 400, 'bullhonky');
 }