tests/unit/Subjects/AbstractSubjectTest.php
/**
     * Test the mapAttributeCodeByHeaderMapping() method.
     *
     * @return void
     */
Test the mapAttributeCodeByHeaderMapping() method.
@return void
Test the mapAttributeCodeByHeaderMapping () method . @return void
public function testMapAttributeCodeByHeaderMapping()
    {
        $this->abstractSubject
             ->expects($this->once())
             ->method('getHeaderMappings')
             ->willReturn(array($attributeCode = 'attributeCode' => $mappedName = 'mappedName'));
        $this->assertSame($mappedName, $this->abstractSubject->mapAttributeCodeByHeaderMapping($attributeCode));
    }
public function testMapAttributeCodeByHeaderMapping ( ) { $ this -> abstractSubject -> expects ( $ this -> once ( ) ) -> method ( 'getHeaderMappings' ) -> willReturn ( array ( $ attributeCode = 'attributeCode' => $ mappedName = 'mappedName' ) ) ; $ this -> assertSame ( $ mappedName , $ this -> abstractSubject -> mapAttributeCodeByHeaderMapping ( $ attributeCode ) ) ; }
Test the mapAttributeCodeByHeaderMapping() method.
Test the mapAttributeCodeByHeaderMapping () method .
// prepare the header mappings // query whether the header will be mapped or not