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:
<?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;
}
}