init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
27
vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Common/VersionTest.php
vendored
可执行文件
27
vendor/guzzlehttp/guzzle/tests/Guzzle/Tests/Common/VersionTest.php
vendored
可执行文件
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Guzzle\Tests\Common;
|
||||
|
||||
use Guzzle\Common\Version;
|
||||
|
||||
/**
|
||||
* @covers Guzzle\Common\Version
|
||||
*/
|
||||
class VersionTest extends \Guzzle\Tests\GuzzleTestCase
|
||||
{
|
||||
/**
|
||||
* @expectedException \PHPUnit_Framework_Error_Deprecated
|
||||
*/
|
||||
public function testEmitsWarnings()
|
||||
{
|
||||
Version::$emitWarnings = true;
|
||||
Version::warn('testing!');
|
||||
}
|
||||
|
||||
public function testCanSilenceWarnings()
|
||||
{
|
||||
Version::$emitWarnings = false;
|
||||
Version::warn('testing!');
|
||||
Version::$emitWarnings = true;
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户