コード例 #1
0
ファイル: example.php プロジェクト: fran-diaz/itseo
    $files = scandir($dir);
    foreach ($files as $file) {
        if ($file == "." || $file == "..") {
            continue;
        }
        $tmp_dir = $dir . DIRECTORY_SEPARATOR . $file;
        if (is_dir($tmp_dir)) {
            autoload($tmp_dir);
        } elseif (is_readable($tmp_dir)) {
            require_once $tmp_dir;
        }
    }
}
autoload(getcwd() . DIRECTORY_SEPARATOR . "itseo");
$itseo = new Itseo("http://www.google.es/");
$itseo->makeTest('Dmoz');
$itseo->makeTest('Favicon');
$itseo->makeTest('Flash');
$itseo->makeTest('Frames');
$itseo->makeTest('Headings');
$itseo->makeTest('Img');
$itseo->makeTest('Links');
$itseo->makeTest('MetaTitle');
$itseo->makeTest('MetaDescription');
$itseo->makeTest('MetaKeywords');
$itseo->makeTest('Www');
$itseo->makeTest('UrlLength');
$itseo->makeTest('Title');
$itseo->makeTest('TextRatio');
$itseo->makeTest('Sitemap');
$itseo->makeTest('Robots');
コード例 #2
0
ファイル: ItseoTest.php プロジェクト: fran-diaz/itseo
 /**
  * @covers itseo\Itseo::makeTest
  * @todo   Implement testMakeTest().
  * @expectedException Exception
  */
 public function testMakeTest()
 {
     $dummy_test = "dummy";
     $this->object->makeTest($dummy_test);
     $this->assertArrayHasKey($dummy_test, $this->object->tests);
 }