home
/
zktecojo
/
public_html
/
vendor
/
intervention
/
image
/
tests
➕ New
📤 Upload
✎ Editing:
AbstractCommandTest.php
← Back
<?php class AbstractCommandTest extends PHPUnit_Framework_TestCase { public function tearDown() { Mockery::close(); } public function testArgument() { $command = $this->getTestCommand(); $this->assertEquals('foo', $command->argument(0)->value()); $this->assertEquals('bar', $command->argument(1)->value()); } public function testGetOutput() { $command = $this->getTestCommand(); $command->setOutput('foo'); $this->assertEquals('foo', $command->getOutput()); } public function testHasOutput() { $command = $this->getTestCommand(); $this->assertEquals(false, $command->hasOutput()); $command->setOutput('foo'); $this->assertEquals(true, $command->hasOutput()); } public function testSetOutput() { $command = $this->getTestCommand(); $command->setOutput('foo'); $this->assertEquals(true, $command->hasOutput()); } public function getTestCommand() { $arguments = array('foo', 'bar'); $command = $this->getMockForAbstractClass('\Intervention\Image\Commands\AbstractCommand', array($arguments)); return $command; } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel