getId() public méthode

public getId ( ) : string
Résultat string fixture ID e.g. 'user0'
 public function testReadAccessorsReturnPropertiesValues()
 {
     $id = 'user_base';
     $definition = new FixtureReference($id);
     $this->assertEquals($id, $definition->getId());
 }
Exemple #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();
 }