/** * @covers Box\TestScribe\Utils\ValueTransformer::translateObjectsAndResourceToString * @covers Box\TestScribe\Utils\ValueTransformer */ public function test_mock_object() { // Execute the method under test. $inputHistoryDataMock = MockObjectFactoryForTest::getInputHistoryDataMockInstance(); $objectUnderTest = new \Box\TestScribe\Utils\ValueTransformer(); $executionResult = $objectUnderTest->translateObjectsAndResourceToString($inputHistoryDataMock); // Validate the execution result. $expected = 'mock object ( mockInputHistoryData )'; $this->assertSame($expected, $executionResult, 'Variable ( executionResult ) doesn\'t have the expected value.'); }
/** * @covers Box\TestScribe\Utils\ValueTransformer::translateObjectsAndResourceToString */ public function testTranslateObjectsAndResourceToString_simple_array() { // Execute the method under test. $objectUnderTest = new \Box\TestScribe\Utils\ValueTransformer(); $executionResult = $objectUnderTest->translateObjectsAndResourceToString(['a']); // Validate the execution result. $this->assertInternalType('array', $executionResult); $this->assertCount(1, $executionResult); $expected = 'a'; $this->assertSame($expected, $executionResult[0], 'Variable ( executionResult[0] ) doesn\'t have the expected value.'); }