public function testPricingModel() { $resource = new Resource(); $this->assertNull($resource->getPricingModel()); $this->assertInstanceOf('iMoneza\\Data\\Resource', $resource->setPricingModel('some model')); $this->assertEquals('some model', $resource->getPricingModel()); }