public function testDefaultValues() { // add some animals to the farm to make sure the ArrayAccess // interface works $dog = new Model\Dog(); $animal = new Model\Animal(); // assert we can look up the animals in the farm by array // indices (let's try a random order) $this->assertSame('red', $dog->getColor()); $this->assertSame('red', $animal->getColor()); }
public function testDiscriminatorInitialization() { $new_dog = new Model\Dog(); $this->assertSame('Dog', $new_dog->getClassName()); }