Pheasant\Tests\Examples\AnotherAnimal::tableName PHP Method

tableName() public method

public tableName ( )
    public function tableName()
    {
        return 'animal';
    }

Usage Example

Exemplo n.º 1
0
 public function testInitializeDefaults()
 {
     $animal = new AnotherAnimal();
     $animal->type = 'llama';
     $animal->save();
     $this->assertEquals($animal->type, 'llama');
     $this->assertEquals($animal->tableName(), 'animal');
 }