/** * @covers CSanquer\FakeryGenerator\Model\Config::addFormat * @covers CSanquer\FakeryGenerator\Model\Config::hasFormat * @covers CSanquer\FakeryGenerator\Model\Config::getFormats * @covers CSanquer\FakeryGenerator\Model\Config::removeFormat */ public function testAddHasRemoveFormat() { $this->assertFalse($this->config->hasFormat('php')); $this->assertInternalType('int', $this->config->getSeed()); $this->assertInstanceOf('\\CSanquer\\FakeryGenerator\\Model\\Config', $this->config->addFormat('php')); $this->assertTrue($this->config->hasFormat('php')); $this->assertEquals(['php'], $this->config->getFormats()); $this->assertTrue($this->config->removeFormat('php')); $this->assertFalse($this->config->hasFormat('php')); $this->assertFalse($this->config->removeFormat('json')); }