Open Monograph Press  3.3.0
VersionTest.php
1 <?php
2 
3 namespace Guzzle\Tests\Common;
4 
6 
11 {
15  public function testEmitsWarnings()
16  {
18  Version::warn('testing!');
19  }
20 
21  public function testCanSilenceWarnings()
22  {
23  Version::$emitWarnings = false;
24  Version::warn('testing!');
26  }
27 }
Guzzle\Tests\Common\VersionTest
Definition: VersionTest.php:10
Guzzle\Tests\GuzzleTestCase
Definition: GuzzleTestCase.php:22
Guzzle\Common\Version\warn
static warn($message)
Definition: Version.php:23
Guzzle\Common\Version
Definition: Version.php:8
Guzzle\Common\Version\$emitWarnings
static $emitWarnings
Definition: Version.php:16
Guzzle\Tests\Common\VersionTest\testEmitsWarnings
testEmitsWarnings()
Definition: VersionTest.php:15
Guzzle\Tests\Common
Guzzle\Tests\Common\VersionTest\testCanSilenceWarnings
testCanSilenceWarnings()
Definition: VersionTest.php:21