/**
  * @test
  */
 public function shouldSetDefaultValuesOnNullArguments()
 {
     $config = new SuiteConfig(null, null, null);
     $this->assertSame(self::DEFAULT_SRC_PATH, $config->getSrcPath());
     $this->assertSame(self::DEFAULT_TEST_PATH, $config->getTestPath());
     $this->assertSame(self::DEFAULT_TEST_SUFFIX, $config->getTestCaseSuffix());
     $this->assertSame(self::DEFAULT_SRC_PATH, $config->getSrcBasePath());
     $this->assertSame(self::DEFAULT_TEST_PATH, $config->getTestBasePath());
 }
Ejemplo n.º 2
0
 /**
  * @param $srcFile
  * @param SuiteConfig $config
  *
  * @return bool
  */
 private function isPhpClassFile($srcFile, $config)
 {
     return FileUtils::instance()->extensionIs($srcFile, 'php') && $this->fileHasClass(FileUtils::instance()->makePath($config->getSrcBasePath(), $srcFile));
 }