Esempio n. 1
0
 /**
  * @test
  */
 public function testUuid()
 {
     $test = 'testing';
     $model = UuidStub::create(compact('test'));
     $this->assertNotNull($model->id);
     $this->assertTrue(ValidateVariableTypeHelper::isString($model->id, 'id'));
 }
 /**
  * @test
  */
 public function isStringFalse()
 {
     $test = false;
     $this->assertFalse(ValidateVariableTypeHelper::isString($test, 'test', false));
     $this->assertNotTrue(ValidateVariableTypeHelper::isString($test, 'test', false));
 }
Esempio n. 3
0
 /**
  * Set path.
  *
  * @param string $path
  *
  * @return $this
  */
 protected function setPath($path)
 {
     ValidateVariableTypeHelper::isString($path, 'path');
     $this->path = $path;
     return $this;
 }