Created
May 22, 2015 00:12
-
-
Save kjdev/a6301834b8c2937e2b32 to your computer and use it in GitHub Desktop.
Phalcon 2.0.1 patch: Skip UnitTest yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/cphalcon/unit-tests/ConfigTest.php | |
+++ b/cphalcon/unit-tests/ConfigTest.php | |
@@ -293,12 +293,22 @@ class ConfigTest extends PHPUnit_Framework_TestCase | |
public function testYamlConfig() | |
{ | |
+ if (!extension_loaded('yaml')) { | |
+ $this->markTestSkipped('Warning: yaml extension is not loaded'); | |
+ return false; | |
+ } | |
+ | |
$config = new Phalcon\Config\Adapter\Yaml('unit-tests/config/config.yml'); | |
$this->assertTrue($this->_compareConfig($this->_config, $config)); | |
} | |
public function testYamlConfigCallback() | |
{ | |
+ if (!extension_loaded('yaml')) { | |
+ $this->markTestSkipped('Warning: yaml extension is not loaded'); | |
+ return false; | |
+ } | |
+ | |
$config = new Phalcon\Config\Adapter\Yaml('unit-tests/config/config.yml', array( | |
'!decrypt' => function ($value) { | |
$crypt = new Phalcon\Crypt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment