blob: 21a653a6cd84f7725e3d9b87520806fad9642760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
snippet copy "Copyright notice" b
<?php
/*
* Copyright `date +%Y` Florian "Bluewind" Pritz <bluewind@server-speed.net>
*
* Licensed under AGPLv3
* (see COPYING for full license text)
*
*/
endsnippet
snippet testclass "Test class for filebin" b
<?php
/*
* Copyright `date +%Y` Florian "Bluewind" Pritz <bluewind@server-speed.net>
*
* Licensed under AGPLv3
* (see COPYING for full license text)
*
*/
namespace test\tests;
class `!p
snip.rv = re.match(r'.*(?=\.)', fn).group()
` extends \test\Test {
public function __construct() {
parent::__construct();
}
public function init() {
}
public function cleanup() {
}
$0
}
endsnippet
snippet times "Time measurement start" b
$measure_time_start = microtime(true);
endsnippet
snippet timee "Time measurement end" b
error_log(sprintf("Measured %sms", (microtime(true) - $measure_time_start) * 1000));
endsnippet
|