/** * Get the value associated with the given key, if the key does not * exist, return null. * * @param string $key * * @return null|string */ public function get($key) { if (count($this->config) < 1) { return null; } return $this->dot->get($this->config, $key); }
/** * @expectedException \InvalidArgumentException */ public function test_dot_throws_exception_on_invalid_collection_type() { $dot = new Dot(); $collection = 5; $actual = $dot->get($collection, 'foo.bar'); }