ReporterTestCase.php 371 Bytes
Newer Older
zYne's avatar
zYne committed
1 2 3 4 5 6 7 8 9 10
<?php
class Doctrine_Export_Reporter_TestCase extends Doctrine_UnitTestCase {
    public function testExportChecksClassNaming() {
        $reporter = $this->export->export('BadLyNamed__Class');

        // Class name is not valid. Double underscores are not allowed

        $this->assertEqual($reporter->pop(), array(E_WARNING, 'Badly named class.'));
    }
}