Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 61 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
class EfloreScriptTest extends PHPUnit_Framework_TestCase {



        public function testGetBdd() {
                $nomDuScript = 'Test';
                $parametresCli = array('-a' => 'tester', '-v' => '3');
                $script = $this->getClasseAbstraite(array($nomDuScript, $parametresCli));
                $getBdd = self::getProtectedMethode($script, 'getBdd');
                $bdd = $getBdd->invoke($script);

                $this->assertTrue(is_object($bdd));
                $this->assertEquals('Bdd', get_class($bdd));
        }



}

?>