diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-09-29 14:09:10 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-09-29 14:09:10 +0200 |
commit | 2b56b774aadc25328651fd5cd5ddda57d683ba1b (patch) | |
tree | d915c53587da9403001c66e02a1d96dea398b6df /ResourceOperationsTest.php |
php-sebastian-resource-operations: new package for PHPUnit 5
Diffstat (limited to 'ResourceOperationsTest.php')
-rw-r--r-- | ResourceOperationsTest.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ResourceOperationsTest.php b/ResourceOperationsTest.php new file mode 100644 index 0000000..176bc0d --- /dev/null +++ b/ResourceOperationsTest.php @@ -0,0 +1,29 @@ +<?php +/* + * This file is part of resource-operations. + * + * (c) Sebastian Bergmann <sebastian@phpunit.de> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace SebastianBergmann\ResourceOperations; + +use PHPUnit_Framework_TestCase; + +/** + * @covers SebastianBergmann\ResourceOperations\ResourceOperations + */ +class ResourceOperationsTest extends PHPUnit_Framework_TestCase +{ + /** + * @covers SebastianBergmann\ResourceOperations\ResourceOperations::getFunctions + */ + public function testGetFunctions() + { + $tab = ResourceOperations::getFunctions(); + $this->assertTrue(is_array($tab), 'ResourceOperations::getFunctions does not return an array'); + $this->assertContains('zip_open', $tab); + } +} |