public function testNewInstanceReturnsNewInstanceWithAttributesSet() { $model = new EloquentModelStub(); $instance = $model->newInstance(array('name' => 'taylor')); $this->assertInstanceOf('EloquentModelStub', $instance); $this->assertEquals('taylor', $instance->name); }