Skip to content

Commit fead6f6

Browse files
committed
add shorthand test
1 parent d02beb0 commit fead6f6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/ShorthandTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
use Tipsy\Tipsy;
4+
5+
class ShorthandTest extends Tipsy_Test {
6+
public function testShorty() {
7+
$_REQUEST['__url'] = 'test';
8+
$_SERVER['REQUEST_METHOD'] = 'GET';
9+
Tipsy::get('test', function() use (&$res) {
10+
$res = true;
11+
});
12+
Tipsy::run();
13+
$this->assertTrue($res);
14+
}
15+
}

0 commit comments

Comments
 (0)