From 24bb5fefbdf93ce0969b7f56cc46c459ebb82a95 Mon Sep 17 00:00:00 2001 From: EoleDev Date: Thu, 14 Apr 2016 16:24:44 +0200 Subject: Mise a jour et nettoyage depot --- .../tests/unit/Common/ArrayAccessTraitTest.php | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 server/vendor/php-opencloud/common/tests/unit/Common/ArrayAccessTraitTest.php (limited to 'server/vendor/php-opencloud/common/tests/unit/Common/ArrayAccessTraitTest.php') diff --git a/server/vendor/php-opencloud/common/tests/unit/Common/ArrayAccessTraitTest.php b/server/vendor/php-opencloud/common/tests/unit/Common/ArrayAccessTraitTest.php deleted file mode 100644 index f5d1fdb..0000000 --- a/server/vendor/php-opencloud/common/tests/unit/Common/ArrayAccessTraitTest.php +++ /dev/null @@ -1,59 +0,0 @@ -aa = new ArrayAccess(); - } - - public function test_offset_is_set() - { - $this->aa->offsetSet('foo', 'bar'); - $this->assertEquals(['foo' => 'bar'], $this->aa->getElements()); - } - - public function test_it_appends_if_no_key_is_set() - { - $this->aa->offsetSet(null, 'bar'); - $this->assertEquals(['bar'], $this->aa->getElements()); - } - - public function test_if_checks_if_offset_exists() - { - $this->aa->offsetSet('bar', 'foo'); - $this->assertTrue($this->aa->offsetExists('bar')); - $this->assertFalse($this->aa->offsetExists('baz')); - } - - public function test_if_gets_offset() - { - $this->aa->offsetSet('bar', 'foo'); - $this->assertEquals('foo', $this->aa->offsetGet('bar')); - $this->assertNull($this->aa->offsetGet('baz')); - } - - public function test_it_unsets_offset() - { - $this->aa->offsetSet('bar', 'foo'); - $this->aa->offsetUnset('bar'); - $this->assertNull($this->aa->offsetGet('bar')); - } -} - -class ArrayAccess -{ - use ArrayAccessTrait; - - public function getElements() - { - return $this->internalState; - } -} -- cgit v1.2.3