getId() public method

public getId ( ) : string
return string fixture ID e.g. 'user0'
Example #1
0
 public function testReadAccessorsReturnPropertiesValues()
 {
     $id = 'user_base';
     $definition = new FixtureReference($id);
     $this->assertEquals($id, $definition->getId());
 }
Example #2
0
 /**
  * @param FixtureReference $extendedFixture Reference of the extended fixture.
  *                                
  * @example
  *  For (extends user0), $extendedFixture is 'user0'
  */
 public function __construct(FixtureReference $extendedFixture)
 {
     $this->extendedFixture = $extendedFixture;
     $this->stringValue = 'extends ' . $extendedFixture->getId();
 }