public function testReadAccessorsReturnPropertiesValues()
{
$fixture = new DummyFixture('foo');
$bag = (new FixtureBag())->with($fixture);
$this->assertTrue($bag->has('foo'));
$this->assertFalse($bag->has('bar'));
$this->assertEquals($fixture, $bag->get('foo'));
try {
$bag->get('bar');
$this->fail('Expected exception to be thrown.');
} catch (FixtureNotFoundException $exception) {
$this->assertEquals('Could not find the fixture "bar".', $exception->getMessage());
}
}