public function testIsWritable()
 {
     $this->assertFalse($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'bar', array()));
     $this->assertFalse($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'baz', array()));
     $this->assertTrue($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'parent', array()));
     $this->assertFalse($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'a', array()));
     $this->assertTrue($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'b', array()));
     $this->assertFalse($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'c', array()));
     $this->assertFalse($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'd', array()));
     $this->assertTrue($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'e', array()));
     $this->assertTrue($this->extractor->isWritable('Symfony\\Component\\PropertyInfo\\Tests\\Fixtures\\Dummy', 'f', array()));
 }
 public function testSingularize()
 {
     $this->assertTrue($this->extractor->isWritable(AdderRemoverDummy::class, 'analyses'));
     $this->assertTrue($this->extractor->isWritable(AdderRemoverDummy::class, 'feet'));
     $this->assertEquals(array('analyses', 'feet'), $this->extractor->getProperties(AdderRemoverDummy::class));
 }