Ejemplo n.º 1
0
 /**
  * @expectedException \Codify\Exception
  * @expectedExceptionCode \Codify\Exception::CLASS_NOT_IN_NAMESPACE
  */
 function testRemoveInvalidClass()
 {
     $this->store->remove('CodifyTest\\InvalidNamespace\\Foo', 'x');
 }
Ejemplo n.º 2
0
 /**
  * Create a new filesystem code store.
  *
  * @param string $base_namespace The base PHP namespace for all code saved.
  * @param string $base_directory Where to load/save the code.
  * @param int    $create_mode    Permissions for file/directory creation.
  */
 public function __construct($base_namespace, $base_directory, $create_mode = 0777)
 {
     parent::__construct($base_namespace);
     $this->base_directory = rtrim($base_directory, DIRECTORY_SEPARATOR . '\\/ ') . DIRECTORY_SEPARATOR;
     $this->create_mode = $create_mode;
 }