<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
public function testEmptyArrayEmptyDelimiter()
{
$str = Arrays::recursiveImplode([], '');
- $this->assertEmpty($str);
+ self::assertEmpty($str);
}
/**
public function testEmptyArrayNonEmptyDelimiter()
{
$str = Arrays::recursiveImplode([], ',');
- $this->assertEmpty($str);
+ self::assertEmpty($str);
}
/**
public function testNonEmptyArrayEmptyDelimiter()
{
$str = Arrays::recursiveImplode([1], '');
- $this->assertSame($str, '1');
+ self::assertSame($str, '1');
}
/**
public function testNonEmptyArray2EmptyDelimiter()
{
$str = Arrays::recursiveImplode([1, 2], '');
- $this->assertSame($str, '12');
+ self::assertSame($str, '12');
}
/**
public function testNonEmptyArrayNonEmptyDelimiter()
{
$str = Arrays::recursiveImplode([1], ',');
- $this->assertSame($str, '1');
+ self::assertSame($str, '1');
}
/**
public function testNonEmptyArray2NonEmptyDelimiter()
{
$str = Arrays::recursiveImplode([1, 2], ',');
- $this->assertSame($str, '1,2');
+ self::assertSame($str, '1,2');
}
/**
public function testEmptyMultiArray2EmptyDelimiter()
{
$str = Arrays::recursiveImplode([[1], []], '');
- $this->assertSame($str, '{1}{}');
+ self::assertSame($str, '{1}{}');
}
/**
public function testEmptyMulti2Array2EmptyDelimiter()
{
$str = Arrays::recursiveImplode([[1], [2]], '');
- $this->assertSame($str, '{1}{2}');
+ self::assertSame($str, '{1}{2}');
}
/**
public function testEmptyMultiArray2NonEmptyDelimiter()
{
$str = Arrays::recursiveImplode([[1], []], ',');
- $this->assertSame($str, '{1},{}');
+ self::assertSame($str, '{1},{}');
}
/**
public function testEmptyMulti2Array2NonEmptyDelimiter()
{
$str = Arrays::recursiveImplode([[1], [2]], ',');
- $this->assertSame($str, '{1},{2}');
+ self::assertSame($str, '{1},{2}');
}
/**
public function testEmptyMulti3Array2NonEmptyDelimiter()
{
$str = Arrays::recursiveImplode([[1], [2, [3]]], ',');
- $this->assertSame($str, '{1},{2,{3}}');
+ self::assertSame($str, '{1},{2,{3}}');
}
}