diff options
Diffstat (limited to 'tests/unit/utility/OPMLExporterTest.php')
-rw-r--r-- | tests/unit/utility/OPMLExporterTest.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/unit/utility/OPMLExporterTest.php b/tests/unit/utility/OPMLExporterTest.php index 958beaaa8..1ff812aa7 100644 --- a/tests/unit/utility/OPMLExporterTest.php +++ b/tests/unit/utility/OPMLExporterTest.php @@ -48,7 +48,7 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase { public function testBuildEmpty(){ - $result = $this->exporter->build(array(), array()); + $result = $this->exporter->build([], []); $xpath = new \DOMXpath($result); $this->assertEquals(0, $xpath->query('//outline')->length); @@ -56,8 +56,7 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase { public function testBuildReturnsFolders() { - $result = $this->exporter->build(array( - $this->folder1, $this->folder2), array()); + $result = $this->exporter->build([$this->folder1, $this->folder2], []); $xpath = new \DOMXpath($result); $elems = $xpath->query('/opml/body/outline'); @@ -70,8 +69,7 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase { public function testBuildReturnsOnlyOneFeedIfParentFolderNotThere() { - $result = $this->exporter->build(array(), - array($this->feed1, $this->feed2)); + $result = $this->exporter->build([], [$this->feed1, $this->feed2]); $xpath = new \DOMXpath($result); $elems = $xpath->query('//outline'); @@ -85,8 +83,9 @@ class OPMLExporterTest extends \PHPUnit_Framework_TestCase { public function testBuildReturnsFeedsAndFolders() { $result = $this->exporter->build( - array($this->folder1, $this->folder2), - array($this->feed1, $this->feed2)); + [$this->folder1, $this->folder2], + [$this->feed1, $this->feed2] + ); $xpath = new \DOMXpath($result); $elems = $xpath->query('/opml/body/outline'); |