Skip to content

Instantly share code, notes, and snippets.

View bolechen's full-sized avatar
💭
I may be slow to respond.

Bole Chen bolechen

💭
I may be slow to respond.
View GitHub Profile
<?php
function is_weixin() {
if ( strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false ) {
return true;
}
return false;
}
@bolechen
bolechen / ExampleTest.php
Created December 14, 2019 15:06 — forked from jakzal/ExampleTest.php
Set global variables with PHPUnit test method annotations
<?php
declare(strict_types=1);
namespace Zalas\Tests;
use PHPUnit\Framework\TestCase;
class ExampleTest extends TestCase
{
/**