public function testExternalKey() { $resource = new Resource(); $this->assertNull($resource->getExternalKey()); $this->assertInstanceOf('iMoneza\\Data\\Resource', $resource->setExternalKey('some-key')); $this->assertEquals('some-key', $resource->getExternalKey()); }