Пример #1
0
 public function x404($text = null, $backgroundColor = null, $color = null, $width = null, $height = null)
 {
     $this->commands .= '$404' . ($text !== null ? ',' . UrlSafeBase64::encode($text) : '') . ($backgroundColor !== null ? ',' . $backgroundColor : '') . ($color !== null ? ',' . $color : '') . ($width !== null ? ',' . $width : '') . ($height !== null ? ',' . $height : '');
     return $this;
 }
Пример #2
0
 public function testEncode()
 {
     $actual = UrlSafeBase64::encode('test');
     $this->assertEquals('dGVzdA', $actual);
 }