/** * Test if default is returned when option does not exist */ public function testDefaultWhenNotFound() { $this->assertSame('not-found', $this->repository->get('NOT FOUND FOR SURE', 'not-found')); }
/** * Test get value */ public function testGet() { $this->assertSame(1, $this->repository->get('FIRST')); $this->assertSame('not-found', $this->repository->get('NOT FOUND', 'not-found')); }
/** * Test set value */ public function testSet() { $this->repository->set('FIRST', 12); $this->assertEquals(12, $this->repository->get('FIRST')); }