for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of file-fixture.
*
* (c) Noritaka Horio <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace holyshared\fixture\container;
use Collections\Map;
use holyshared\fixture\Container;
final class FixtureContainer implements Container
{
* @var \Collections\Map
private $fixtures;
* @param array $fixtures
public function __construct(array $fixtures = [])
$this->fixtures = Map::fromArray($fixtures);
}
* Get the path of fixture file
* @param string $name
* @return string
public function get($name)
return $this->fixtures->get($name);
* @return bool
public function has($name)
return $this->fixtures->containsKey($name);