/** * @covers Box\TestScribe\InputHistory\InputHistoryData::jsonSerialize */ public function testJsonSerialize() { $objectUnderTest = new InputHistory\InputHistoryData(); $objectUnderTest->setInputStringToHistory('s', 'i', 'a'); $executionResult = $objectUnderTest->jsonSerialize(); // Validate the execution result. $this->assertSame(['s' => ['i' => 'a']], $executionResult); }
/** * @covers Box\TestScribe\InputHistory\InputHistoryData::jsonSerialize */ public function testJsonSerialize() { // Execute the method under test. $objectUnderTest = new InputHistory\InputHistoryData(); $executionResult = $objectUnderTest->jsonSerialize(); // Validate the execution result. $this->assertInternalType('array', $executionResult); $this->assertCount(0, $executionResult); }