php-deb-packager/tests/wdm/debian/PackagerTest.php
Walter Dal Mut 664cff2bf0 Added getControl method
In order to retrive the actual control file i have added a new getter
method for the control file
2015-04-12 11:27:56 +02:00

26 lines
579 B
PHP

<?php
namespace wdm\debian;
class PackagerTest extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$this->object = new Packager();
}
public function testRetrieveTheBuildCommand()
{
$this->object->setOutputPath("/tmp");
$this->assertEquals("dpkg -b /tmp my.deb", $this->object->build("my.deb"));
}
public function testRetriveControlFile()
{
$control = new control\StandardFile();
$this->object->setControl($control);
$this->assertSame($control, $this->object->getControl());
}
}