/** * Tests the toArray() method. * * @depends testCreateFromPath * * @covers ::toArray() */ public function testToArray(Url $url) { $expected = array('path' => $this->path, 'options' => array('external' => TRUE)); $this->assertSame($expected, $url->toArray()); }