1
0
Fork 0

Package options should be dumped if exists

pull/2189/head
Luís Otávio Cobucci Oblonczyk 2013-08-19 04:39:13 -03:00
parent d4043b6b9a
commit 28d0e08785
2 changed files with 8 additions and 0 deletions

View File

@ -108,6 +108,10 @@ class ArrayDumper
} }
} }
if (count($package->getOptions()) > 0) {
$data['options'] = $package->getOptions();
}
return $data; return $data;
} }

View File

@ -194,6 +194,10 @@ class ArrayDumperTest extends \PHPUnit_Framework_TestCase
array(new Link('foo', 'foo/bar', new VersionConstraint('=', '1.0.0.0'), 'requires', '1.0.0'), new Link('bar', 'bar/baz', new VersionConstraint('=', '1.0.0.0'), 'requires', '1.0.0')), array(new Link('foo', 'foo/bar', new VersionConstraint('=', '1.0.0.0'), 'requires', '1.0.0'), new Link('bar', 'bar/baz', new VersionConstraint('=', '1.0.0.0'), 'requires', '1.0.0')),
'conflicts', 'conflicts',
array('bar/baz' => '1.0.0', 'foo/bar' => '1.0.0') array('bar/baz' => '1.0.0', 'foo/bar' => '1.0.0')
),
array(
'options',
array('ssl' => array('local_cert' => '/opt/certs/test.pem'))
) )
); );
} }