dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add .sass-cache to .gitignore"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
GenericArrayObjectTest.php
diff --git
a/tests/phpunit/includes/libs/GenericArrayObjectTest.php
b/tests/phpunit/includes/libs/GenericArrayObjectTest.php
index
37a9b34
..
e2ec474
100644
(file)
--- a/
tests/phpunit/includes/libs/GenericArrayObjectTest.php
+++ b/
tests/phpunit/includes/libs/GenericArrayObjectTest.php
@@
-73,6
+73,7
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
*/
protected function getNew( array $elements = array() ) {
$class = $this->getInstanceClass();
*/
protected function getNew( array $elements = array() ) {
$class = $this->getInstanceClass();
+
return new $class( $elements );
}
return new $class( $elements );
}
@@
-82,6
+83,8
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.20
*
* @param array $elements
* @since 1.20
*
* @param array $elements
+ *
+ * @covers GenericArrayObject::__construct
*/
public function testConstructor( array $elements ) {
$arrayObject = $this->getNew( $elements );
*/
public function testConstructor( array $elements ) {
$arrayObject = $this->getNew( $elements );
@@
-95,6
+98,8
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.20
*
* @param array $elements
* @since 1.20
*
* @param array $elements
+ *
+ * @covers GenericArrayObject::isEmpty
*/
public function testIsEmpty( array $elements ) {
$arrayObject = $this->getNew( $elements );
*/
public function testIsEmpty( array $elements ) {
$arrayObject = $this->getNew( $elements );
@@
-108,6
+113,8
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.20
*
* @param GenericArrayObject $list
* @since 1.20
*
* @param GenericArrayObject $list
+ *
+ * @covers GenericArrayObject::offsetUnset
*/
public function testUnset( GenericArrayObject $list ) {
if ( $list->isEmpty() ) {
*/
public function testUnset( GenericArrayObject $list ) {
if ( $list->isEmpty() ) {
@@
-133,6
+140,8
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.20
*
* @param array $elements
* @since 1.20
*
* @param array $elements
+ *
+ * @covers GenericArrayObject::append
*/
public function testAppend( array $elements ) {
$list = $this->getNew();
*/
public function testAppend( array $elements ) {
$list = $this->getNew();
@@
-162,6
+171,8
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.20
*
* @param callback $function
* @since 1.20
*
* @param callback $function
+ *
+ * @covers GenericArrayObject::getObjectType
*/
protected function checkTypeChecks( $function ) {
$excption = null;
*/
protected function checkTypeChecks( $function ) {
$excption = null;
@@
-193,10
+204,13
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.20
*
* @param array $elements
* @since 1.20
*
* @param array $elements
+ *
+ * @covers GenericArrayObject::offsetSet
*/
public function testOffsetSet( array $elements ) {
if ( $elements === array() ) {
$this->assertTrue( true );
*/
public function testOffsetSet( array $elements ) {
if ( $elements === array() ) {
$this->assertTrue( true );
+
return;
}
return;
}
@@
-245,6
+259,10
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
* @since 1.21
*
* @param GenericArrayObject $list
* @since 1.21
*
* @param GenericArrayObject $list
+ *
+ * @covers GenericArrayObject::getSerializationData
+ * @covers GenericArrayObject::serialize
+ * @covers GenericArrayObject::unserialize
*/
public function testSerialization( GenericArrayObject $list ) {
$serialization = serialize( $list );
*/
public function testSerialization( GenericArrayObject $list ) {
$serialization = serialize( $list );
@@
-258,5
+276,4
@@
abstract class GenericArrayObjectTest extends MediaWikiTestCase {
$this->assertArrayEquals( $list, $copy, true, true );
}
$this->assertArrayEquals( $list, $copy, true, true );
}
-
}
}