PageRenderTime 78ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/Zend/Stdlib/GlobTest.php

https://bitbucket.org/aboozar/zf2
PHP | 29 lines | 17 code | 4 blank | 8 comment | 1 complexity | 1ec1fc195433bf1c91f77e65014d3b58 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. <?php
  2. /**
  3. * Zend Framework (http://framework.zend.com/)
  4. *
  5. * @link http://github.com/zendframework/zf2 for the canonical source repository
  6. * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
  7. * @license http://framework.zend.com/license/new-bsd New BSD License
  8. * @package Zend_Stdlib
  9. */
  10. namespace ZendTest\Stdlib;
  11. use PHPUnit_Framework_TestCase as TestCase;
  12. use Zend\Stdlib\Glob;
  13. class GlobTest extends TestCase
  14. {
  15. public function testFallback()
  16. {
  17. if (!defined('GLOB_BRACE')) {
  18. $this->markTestSkipped('GLOB_BRACE not available');
  19. }
  20. $this->assertEquals(
  21. glob(__DIR__ . '/_files/{alph,bet}a', GLOB_BRACE),
  22. Glob::glob(__DIR__ . '/_files/{alph,bet}a', Glob::GLOB_BRACE, true)
  23. );
  24. }
  25. }