/** * @covers Box\TestScribe\InputHistory\InputHistoryData::getInputStringFromHistory */ public function testGetInputStringFromHistoryNonExistingItem() { // Execute the method under test. $objectUnderTest = new InputHistory\InputHistoryData(); $executionResult = $objectUnderTest->getInputStringFromHistory('section', 'item'); // Validate the execution result. $expected = ''; $this->assertSame($expected, $executionResult, 'Variable ( executionResult ) doesn\'t have the expected value.'); }
/** * @covers Box\TestScribe\InputHistory\InputHistoryData::setData */ public function testSetData() { // Execute the method under test. $objectUnderTest = new InputHistory\InputHistoryData(); $expected = ['a' => 'foo']; $objectUnderTest->setData($expected); // Validate the execution result. $executionResult = $objectUnderTest->getData(); $this->assertSame($expected, $executionResult, 'Variable ( executionResult ) doesn\'t have the expected value.'); }